com php-src: avoid dangling pointers: ext/opcache/shared_allo c_win32.c

From: Date: Thu, 24 Sep 2015 14:33:58 +0000
Subject: com php-src: avoid dangling pointers: ext/opcache/shared_allo c_win32.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-89160@lists.php.net to get a copy of this message
Commit: df832c966ce5c09a1c7dd557ebfb80f1dc181f4f Author: Anatol Belski <ab@php.net> Thu, 24 Sep 2015 14:26:15 +0200 Parents: 3ef3d80f2594c7bfb8c1d718a4a17f34f0e67e4f Branches: PHP-7.0 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=df832c966ce5c09a1c7dd557ebfb80f1dc181f4f Log: avoid dangling pointers Changed paths: M ext/opcache/shared_alloc_win32.c Diff: diff --git a/ext/opcache/shared_alloc_win32.c b/ext/opcache/shared_alloc_win32.c index 6ba608d..b8e1a07 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; }

« previous php.cvs (#89160) next »