Browse Source

Fix leaking handle.

Thanks to ilya77 at gmail dot com
PHP-5.1
Wez Furlong 22 years ago
parent
commit
be4778b87e
  1. 1
      ext/standard/proc_open.c

1
ext/standard/proc_open.c

@ -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

Loading…
Cancel
Save