diff options
author | Anatol Belski <ab@php.net> | 2015-10-04 22:19:51 +0200 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2015-10-05 21:59:26 +0200 |
commit | d5bd999a8f33144ffbd19d5d45ba078dc77242da (patch) | |
tree | 41f24b0b5553955400421351a75fa257cd67f6b7 /TSRM | |
parent | 3331d870aabe314ce8e7da6c5feb8f7566e34763 (diff) | |
download | php-git-d5bd999a8f33144ffbd19d5d45ba078dc77242da.tar.gz |
don't leak handles
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 5b8b64a1e1..9f900f2ae6 100644 --- a/TSRM/tsrm_win32.c +++ b/TSRM/tsrm_win32.c @@ -612,6 +612,12 @@ TSRM_API int shmget(int key, int size, int flags) created = TRUE; } if (!shm_handle || !info_handle) { + if (shm_handle) { + CloseHandle(shm_handle); + } + if (info_handle) { + CloseHandle(info_handle); + } return -1; } } else { |