unmap correct handle

This commit is contained in:
Anatol Belski 2015-09-22 21:20:50 +02:00
parent a490485893
commit afe04911a7

View file

@ -623,7 +623,7 @@ TSRM_API int shmget(int key, int size, int flags)
shm = shm_get(key, NULL);
if (!shm) {
UnmapViewOfFile(shm_handle);
UnmapViewOfFile(shm_handle);
UnmapViewOfFile(info_handle);
return -1;
}
shm->segment = shm_handle;