summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/opcache/shared_alloc_win32.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/opcache/shared_alloc_win32.c b/ext/opcache/shared_alloc_win32.c
index 6ba608d773..b8e1a07896 100644
--- a/ext/opcache/shared_alloc_win32.c
+++ b/ext/opcache/shared_alloc_win32.c
@@ -329,10 +329,13 @@ static int detach_segment(zend_shared_segment *shared_segment)
zend_shared_alloc_lock_win32();
if (mapping_base) {
UnmapViewOfFile(mapping_base);
+ mapping_base = NULL;
}
CloseHandle(memfile);
+ memfile = NULL;
zend_shared_alloc_unlock_win32();
CloseHandle(memory_mutex);
+ memory_mutex = NULL;
return 0;
}