]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
In os_unix.c, call munmap() to unmap a shared-memory region prior to closing the...
authordan <dan@noemail.net>
Mon, 7 Jun 2010 19:26:54 +0000 (19:26 +0000)
committerdan <dan@noemail.net>
Mon, 7 Jun 2010 19:26:54 +0000 (19:26 +0000)
FossilOrigin-Name: 95cc976f1520bdaedd8f93b0e9fbef94e4e2c8cc

manifest
manifest.uuid
src/os_unix.c

index 16c91b63afdbc25fde162425809d939853b603b9..fcdf8e5c2f54b0766ab613f1952dc855968c4a37 100644 (file)
--- a/manifest
+++ b/manifest
@@ -1,5 +1,5 @@
-C Change\sall.test,\squick.test\sand\spermutations.test\sso\sthat\sthey\suse\sa\sseparate\sinterpreter\sfor\seach\stest\sfile.
-D 2010-06-07T17:47:27
+C In\sos_unix.c,\scall\smunmap()\sto\sunmap\sa\sshared-memory\sregion\sprior\sto\sclosing\sthe\sassociated\sfile\sdescriptor.
+D 2010-06-07T19:26:54
 F Makefile.arm-wince-mingw32ce-gcc fcd5e9cd67fe88836360bb4f9ef4cb7f8e2fb5a0
 F Makefile.in a5cad1f8f3e021356bfcc6c77dc16f6f1952bbc3
 F Makefile.linux-gcc d53183f4aa6a9192d249731c90dbdffbd2c68654
@@ -152,7 +152,7 @@ F src/os.c 1516984144e26734f97748f891f1a04f9e294c2e
 F src/os.h 6f529984a29511c7a3479cfe549c10bfa131532f
 F src/os_common.h a8f95b81eca8a1ab8593d23e94f8a35f35d4078f
 F src/os_os2.c 665876d5eec7585226b0a1cf5e18098de2b2da19
-F src/os_unix.c 8fa4eeb27c54f26e9ce01bead2fa117fadea1526
+F src/os_unix.c 12051d37e533cdaa8bb13c9d9fe2a13e08552187
 F src/os_win.c 0cf1f571546f165001e2391b5d4a4a16d86977d3
 F src/pager.c bd9647a741d1905a2a46cc79126ca2d720f33f5d
 F src/pager.h 76466c3a5af56943537f68b1f16567101a0cd1d0
@@ -817,7 +817,7 @@ F tool/speedtest2.tcl ee2149167303ba8e95af97873c575c3e0fab58ff
 F tool/speedtest8.c 2902c46588c40b55661e471d7a86e4dd71a18224
 F tool/speedtest8inst1.c 293327bc76823f473684d589a8160bde1f52c14e
 F tool/vdbe-compress.tcl d70ea6d8a19e3571d7ab8c9b75cba86d1173ff0f
-P c2edf8e17f874d0ca4e94b75575bf6e14eea1f05
-R ce692aab008107eab9ae250eae0cd9f3
+P 7c33eb5a5add8fe76dd412ecab5b6ff8cd78a98d
+R 5fabbd488e57776162623cce41a4cd2d
 U dan
-Z d36c5afeb06c8bfd7f4cb398a6671d90
+Z fcc22f8b3c04ea5c24692f33ce5cbe21
index a5b35d0de315bb037bd23aa1bb4cf0a4737af183..c2850b3308ddfc2cea73f08af13270425cfeb0e4 100644 (file)
@@ -1 +1 @@
-7c33eb5a5add8fe76dd412ecab5b6ff8cd78a98d
\ No newline at end of file
+95cc976f1520bdaedd8f93b0e9fbef94e4e2c8cc
\ No newline at end of file
index 0a1c3e7417aa90793b2bda5580be33af61808324..dadc3c98af7a63b6700496c1ce0db4467f34ca40 100644 (file)
@@ -3269,6 +3269,7 @@ static void unixShmPurge(unixFile *pFd){
     assert( p->pInode==pFd->pInode );
     if( p->mutex ) sqlite3_mutex_free(p->mutex);
     if( p->mutexBuf ) sqlite3_mutex_free(p->mutexBuf);
+    if( p->pMMapBuf ) munmap(p->pMMapBuf, p->szMap);
     if( p->h>=0 ) close(p->h);
     p->pInode->pShmNode = 0;
     sqlite3_free(p);