diff options
author | danielk1977 <danielk1977@noemail.net> | 2007-07-26 06:50:05 +0000 |
---|---|---|
committer | danielk1977 <danielk1977@noemail.net> | 2007-07-26 06:50:05 +0000 |
commit | e0fc52618c68117f89f78ef13518b09f3349e2e4 (patch) | |
tree | 5c3648ec05c2cf6b5979ab965ebcab29baaa9f29 /src/func.c | |
parent | a2d04e9a0f973c51c49668a1011ae94178ddbfb7 (diff) | |
download | sqlite-e0fc52618c68117f89f78ef13518b09f3349e2e4.tar.gz sqlite-e0fc52618c68117f89f78ef13518b09f3349e2e4.zip |
Fix two obscure memory leaks that can follow a malloc() failure in sqlite3_set_auxdata(). Ticket #2534. (CVS 4185)
FossilOrigin-Name: b88af1827bec3e8a32450dd0a073ffc3b12a5939
Diffstat (limited to 'src/func.c')
-rw-r--r-- | src/func.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/func.c b/src/func.c index 694dd8d35..2a7019d79 100644 --- a/src/func.c +++ b/src/func.c @@ -16,7 +16,7 @@ ** sqliteRegisterBuildinFunctions() found at the bottom of the file. ** All other code has file scope. ** -** $Id: func.c,v 1.162 2007/07/23 19:12:42 drh Exp $ +** $Id: func.c,v 1.163 2007/07/26 06:50:06 danielk1977 Exp $ */ #include "sqliteInt.h" #include <ctype.h> @@ -1118,6 +1118,7 @@ static void test_auxdata( if( zAux ){ zRet[i*2] = '1'; if( strcmp(zAux, z) ){ + free_test_auxdata((void *)zRet); sqlite3_result_error(pCtx, "Auxilary data corruption", -1); return; } |