mirror of
https://github.com/php/php-src.git
synced 2025-08-16 22:18:50 +02:00
Merge branch 'PHP-5.6' into PHP-7.0
* PHP-5.6: fix HANDLE leak
This commit is contained in:
commit
1b227de970
1 changed files with 6 additions and 0 deletions
|
@ -622,6 +622,12 @@ TSRM_API int shmget(int key, int size, int flags)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (flags & IPC_EXCL) {
|
if (flags & IPC_EXCL) {
|
||||||
|
if (shm_handle) {
|
||||||
|
CloseHandle(shm_handle);
|
||||||
|
}
|
||||||
|
if (info_handle) {
|
||||||
|
CloseHandle(info_handle);
|
||||||
|
}
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue