diff options
author | Anatol Belski <ab@php.net> | 2016-08-29 21:48:50 +0200 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2016-08-29 21:48:50 +0200 |
commit | 2bfe926eb1ee57afb11a7872f0fcb5c4cc1e3ebc (patch) | |
tree | 3b9add6d3d39af6329f2580dd30dde8106a78a5c /TSRM | |
parent | 6bb5b6e8a3b28ecd53f2acff169d820f53460fad (diff) | |
parent | 1b227de970deede1592ba08d8b93522937d7d19c (diff) | |
download | php-git-2bfe926eb1ee57afb11a7872f0fcb5c4cc1e3ebc.tar.gz |
Merge branch 'PHP-7.0' into PHP-7.1
* PHP-7.0:
fix HANDLE leak
Diffstat (limited to 'TSRM')
-rw-r--r-- | TSRM/tsrm_win32.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/TSRM/tsrm_win32.c b/TSRM/tsrm_win32.c index 4651cbf079..ae92e1fbf1 100644 --- a/TSRM/tsrm_win32.c +++ b/TSRM/tsrm_win32.c @@ -672,6 +672,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; } } |