com php-src: unmap correct handle: TSRM/tsrm_win32.c
| From: | Anatol Belski | Date: | Tue, 22 Sep 2015 19:20:50 +0000 |
| Subject: | com php-src: unmap correct handle: TSRM/tsrm_win32.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-89118@lists.php.net to get a copy of this message | ||
Commit: afe04911a76c34b794fba5da869865a8de19d84e
Author: Anatol Belski <ab@php.net> Tue, 22 Sep 2015 21:20:50 +0200
Parents: a490485893182ad516d82092c62dfde43358cabd
Branches: PHP-7.0 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=afe04911a76c34b794fba5da869865a8de19d84e
Log:
unmap correct handle
Changed paths:
M TSRM/tsrm_win32.c
Diff:
diff --git a/TSRM/tsrm_win32.c b/TSRM/tsrm_win32.c
index 42a7294..98ed806 100644
--- a/TSRM/tsrm_win32.c
+++ b/TSRM/tsrm_win32.c
@@ -623,7 +623,7 @@ TSRM_API int shmget(int key, int size, int flags)
shm = shm_get(key, NULL);
if (!shm) {
UnmapViewOfFile(shm_handle);
- UnmapViewOfFile(shm_handle);
+ UnmapViewOfFile(info_handle);
return -1;
}
shm->segment = shm_handle;