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

When shutting down the memsys5 memory allocator, be sure to clear the mutex

pointer in case the next startup does not use a mutex because it is configured
differently.

FossilOrigin-Name: d4e7e2d82321c12fe471ed49098828bc0ef78543
This commit is contained in:
drh
2009-08-18 12:16:03 +00:00
parent 4c5514d76e
commit 15385ad437
3 changed files with 11 additions and 10 deletions

View File

@@ -472,6 +472,7 @@ static int memsys5Init(void *NotUsed){
*/
static void memsys5Shutdown(void *NotUsed){
UNUSED_PARAMETER(NotUsed);
mem5.mutex = 0;
return;
}