Fix leaking handle.

Thanks to ilya77 at gmail dot com
This commit is contained in:
Wez Furlong 2004-11-10 19:47:15 +00:00
parent a59551d771
commit be4778b87e

View file

@ -219,6 +219,7 @@ static void proc_open_rsrc_dtor(zend_rsrc_list_entry *rsrc TSRMLS_DC)
WaitForSingleObject(proc->child, INFINITE);
GetExitCodeProcess(proc->child, &wstatus);
FG(pclose_ret) = wstatus;
CloseHandle(proc->child);
#elif HAVE_SYS_WAIT_H