From: dan Date: Fri, 17 Apr 2015 16:29:11 +0000 (+0000) Subject: Fix a memory leak in sqlite3ota.c that can follow an OOM error. X-Git-Tag: version-3.8.11~252^2~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=43030868e6ac378a4478c1fcd86661f517246261;p=thirdparty%2Fsqlite.git Fix a memory leak in sqlite3ota.c that can follow an OOM error. FossilOrigin-Name: c3dc15e71782fc70e92b71ad9eec0cf8ffef611f --- diff --git a/ext/ota/sqlite3ota.c b/ext/ota/sqlite3ota.c index 29172ac43f..35ee5a566f 100644 --- a/ext/ota/sqlite3ota.c +++ b/ext/ota/sqlite3ota.c @@ -3334,6 +3334,8 @@ static int otaVfsOpen( pOtaVfs->pMain = pFd; sqlite3_mutex_leave(pOtaVfs->mutex); } + }else{ + sqlite3_free(pFd->zDel); } return rc; diff --git a/manifest b/manifest index 605bfe3526..1f003671bf 100644 --- a/manifest +++ b/manifest @@ -1,5 +1,5 @@ -C Have\sOTA\salways\sspecify\sSQLITE_CONFIG_URI\swhen\sopening\sdatabases.\sFix\sa\stest\sissue\scausing\sotacrash.test\sto\sfail. -D 2015-04-17T08:36:05.998 +C Fix\sa\smemory\sleak\sin\ssqlite3ota.c\sthat\scan\sfollow\san\sOOM\serror. +D 2015-04-17T16:29:11.767 F Makefile.arm-wince-mingw32ce-gcc d6df77f1f48d690bd73162294bbba7f59507c72f F Makefile.in 79b306896135a2305cfb7e6d88990fc4820fb917 F Makefile.linux-gcc 91d710bdc4998cb015f39edf3cb314ec4f4d7e23 @@ -138,7 +138,7 @@ F ext/ota/otaA.test ab67f7f53670b81c750dcc946c5b704f51c429a4 F ext/ota/otacrash.test 8346192b2d46cbe7787d5d65904d81d3262a3cbf F ext/ota/otafault.test 8c43586c2b96ca16bbce00b5d7e7d67316126db8 F ext/ota/otafault2.test fa202a98ca221faec318f3e5c5f39485b1256561 -F ext/ota/sqlite3ota.c 725e87f0f5f97b6521cfe15e53a420af2974dbeb +F ext/ota/sqlite3ota.c 7a2a9f20ac8d13a2ea36382c3d63ed4897fafdca F ext/ota/sqlite3ota.h 5b1453917e955701b0232c0dfb0884b3d598feb1 F ext/ota/test_ota.c e34c801c665d64b4b9e00b71f1acf8c652404b2b F ext/rtree/README 6315c0d73ebf0ec40dedb5aa0e942bc8b54e3761 @@ -1269,7 +1269,7 @@ F tool/vdbe_profile.tcl 67746953071a9f8f2f668b73fe899074e2c6d8c1 F tool/warnings-clang.sh f6aa929dc20ef1f856af04a730772f59283631d4 F tool/warnings.sh 0abfd78ceb09b7f7c27c688c8e3fe93268a13b32 F tool/win/sqlite.vsix deb315d026cc8400325c5863eef847784a219a2f -P d0fba72a47f73082ade40a732aab114bc8f6d83e -R 5df3a54f3cd4535cbda82e7ad6f8185e +P 0d0e5ec064eaecb200b9b601b7a54a1700cd176e +R 02e7f33cd98d0e8b29b622a2f9046b41 U dan -Z 78b848ba36b0ed64cc210670080470ec +Z 8d5b962ca676e7aaba586f55b85a175a diff --git a/manifest.uuid b/manifest.uuid index 146823acec..3d5e03f47b 100644 --- a/manifest.uuid +++ b/manifest.uuid @@ -1 +1 @@ -0d0e5ec064eaecb200b9b601b7a54a1700cd176e \ No newline at end of file +c3dc15e71782fc70e92b71ad9eec0cf8ffef611f \ No newline at end of file