summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2016-08-29 21:45:39 +0200
committerAnatol Belski <ab@php.net>2016-08-29 21:45:39 +0200
commitc7b4cd1a51736b15d095b6b540f17076a0a8433d (patch)
treebd85a3ae7bff62d0b712c29cdba9591369cd40e3
parentae81e8fc32749a3f94d975eed79fb9784ca9b8f5 (diff)
downloadphp-git-c7b4cd1a51736b15d095b6b540f17076a0a8433d.tar.gz
fix HANDLE leak
-rw-r--r--TSRM/tsrm_win32.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/TSRM/tsrm_win32.c b/TSRM/tsrm_win32.c
index f81f93c3e5..0fec4a0e9a 100644
--- a/TSRM/tsrm_win32.c
+++ b/TSRM/tsrm_win32.c
@@ -616,6 +616,12 @@ TSRM_API int shmget(int key, int size, int flags)
}
} else {
if (flags & IPC_EXCL) {
+ if (shm_handle) {
+ CloseHandle(shm_handle);
+ }
+ if (info_handle) {
+ CloseHandle(info_handle);
+ }
return -1;
}
}