]> granicus.if.org Git - php/commitdiff
Fix leaking handle.
authorWez Furlong <wez@php.net>
Wed, 10 Nov 2004 19:47:15 +0000 (19:47 +0000)
committerWez Furlong <wez@php.net>
Wed, 10 Nov 2004 19:47:15 +0000 (19:47 +0000)
Thanks to ilya77 at gmail dot com

ext/standard/proc_open.c

index d29c867eeab44c4328d36186307709d59d5092dd..1417deff52aac2974f40d3005ef32b1f9aa778a1 100644 (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