diff options
author | dan <dan@noemail.net> | 2016-03-01 18:35:55 +0000 |
---|---|---|
committer | dan <dan@noemail.net> | 2016-03-01 18:35:55 +0000 |
commit | 23c3c38dd63e5c8bd8568f18ce6839672d7f2ebe (patch) | |
tree | 128da7cb3d726792a4bfa9255d4b9befb90d38d7 /src | |
parent | a3a44dd3795c9d9ed3d264190cce285ce7f324f7 (diff) | |
download | sqlite-23c3c38dd63e5c8bd8568f18ce6839672d7f2ebe.tar.gz sqlite-23c3c38dd63e5c8bd8568f18ce6839672d7f2ebe.zip |
Fix a memory leak in the test code on this branch.
FossilOrigin-Name: 7a1add56341f43dc41adc7b370e58860f4dd50a3
Diffstat (limited to 'src')
-rw-r--r-- | src/test_bestindex.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test_bestindex.c b/src/test_bestindex.c index e58c363db..4fbf63bf1 100644 --- a/src/test_bestindex.c +++ b/src/test_bestindex.c @@ -329,6 +329,7 @@ static int tclBestIndex(sqlite3_vtab *tab, sqlite3_index_info *pIdxInfo){ if( sqlite3_stricmp("idxstr", zCmd)==0 ){ sqlite3_free(pIdxInfo->idxStr); pIdxInfo->idxStr = sqlite3_mprintf("%s", Tcl_GetString(p)); + pIdxInfo->needToFreeIdxStr = 1; }else if( sqlite3_stricmp("rows", zCmd)==0 ){ rc = Tcl_GetWideIntFromObj(interp, p, &pIdxInfo->estimatedRows); |