summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2015-10-04 22:14:47 +0200
committerAnatol Belski <ab@php.net>2015-10-05 21:59:22 +0200
commit3331d870aabe314ce8e7da6c5feb8f7566e34763 (patch)
tree53c6f72a1a2eec5c90e88f247393a63984f02f04
parent0fbd3e5fe7c2df5f8eb8cf2f217902f80a9fd894 (diff)
downloadphp-git-3331d870aabe314ce8e7da6c5feb8f7566e34763.tar.gz
use correct function to close handles
-rw-r--r--TSRM/tsrm_win32.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/TSRM/tsrm_win32.c b/TSRM/tsrm_win32.c
index 98ed806c71..5b8b64a1e1 100644
--- a/TSRM/tsrm_win32.c
+++ b/TSRM/tsrm_win32.c
@@ -622,8 +622,8 @@ TSRM_API int shmget(int key, int size, int flags)
shm = shm_get(key, NULL);
if (!shm) {
- UnmapViewOfFile(shm_handle);
- UnmapViewOfFile(info_handle);
+ CloseHandle(shm_handle);
+ CloseHandle(info_handle);
return -1;
}
shm->segment = shm_handle;