mirror of
https://github.com/php/php-src.git
synced 2024-11-24 10:24:11 +08:00
don't leak handles
This commit is contained in:
parent
3331d870aa
commit
d5bd999a8f
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user