From: Wez Furlong Date: Wed, 10 Nov 2004 19:47:15 +0000 (+0000) Subject: Fix leaking handle. X-Git-Tag: RELEASE_0_2~712 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=be4778b87ee48b6f35ff5f5021f18b0604a124ef;p=php Fix leaking handle. Thanks to ilya77 at gmail dot com --- diff --git a/ext/standard/proc_open.c b/ext/standard/proc_open.c index d29c867eea..1417deff52 100644 --- a/ext/standard/proc_open.c +++ b/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