summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2004-11-10 20:28:27 +0000
committerWez Furlong <wez@php.net>2004-11-10 20:28:27 +0000
commit2c14b8fd21094682ca94c53aec286dd3d3c4ae2d (patch)
tree6d2a7a6a18f5844c24cab246e5b83646770a6fdd
parent4c04d243daff1cb34644b73d10fba29ff861c098 (diff)
downloadphp-git-2c14b8fd21094682ca94c53aec286dd3d3c4ae2d.tar.gz
MFH: CloseHandle
-rw-r--r--ext/standard/exec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/standard/exec.c b/ext/standard/exec.c
index 8fa7bfb024..3619e73850 100644
--- a/ext/standard/exec.c
+++ b/ext/standard/exec.c
@@ -602,6 +602,7 @@ static void proc_open_rsrc_dtor(zend_rsrc_list_entry *rsrc TSRMLS_DC)
WaitForSingleObject(child, INFINITE);
GetExitCodeProcess(child, &wstatus);
FG(pclose_ret) = wstatus;
+ CloseHandle(child);
#else
# if HAVE_SYS_WAIT_H
int wstatus;