1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-18 10:21:03 +03:00

Add tests for sqlite_rename_quotefix(). Fix a memory leak in the same.

FossilOrigin-Name: 531550056c38589c99c9a97b6afdbf8f34ff8d2131d74e9d42af3506e8045064
This commit is contained in:
dan
2021-03-16 18:24:49 +00:00
parent 2ad080aa82
commit 1fffa73ea2
5 changed files with 69 additions and 12 deletions

View File

@@ -1849,6 +1849,7 @@ static void renameQuotefixFunc(
if( rc==SQLITE_OK ){
rc = renameEditSql(context, &sCtx, zInput, 0, 0);
}
renameTokenFree(db, sCtx.pList);
}
if( rc!=SQLITE_OK ){
sqlite3_result_error_code(context, rc);