From: William A. Rowe Jr Date: Wed, 31 Jul 2002 06:13:18 +0000 (+0000) Subject: Drop a redundant destructor. X-Git-Tag: 2.0.40~64 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8433bfb39035dc1fa1d822d3fe1abc276fce9f63;p=thirdparty%2Fapache%2Fhttpd.git Drop a redundant destructor. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96255 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/mpm/winnt/mpm_winnt.c b/server/mpm/winnt/mpm_winnt.c index 2f7d3309a58..9e3e4e3b9a2 100644 --- a/server/mpm/winnt/mpm_winnt.c +++ b/server/mpm/winnt/mpm_winnt.c @@ -779,6 +779,7 @@ static int create_process(apr_pool_t *p, HANDLE *child_proc, HANDLE *child_exit_ */ waitlist[waitlist_term] = new_child.hproc; rv = WaitForMultipleObjects(2, waitlist, FALSE, INFINITE); + CloseHandle(waitlist[waitlist_ready]); if (rv != WAIT_OBJECT_0) { /* * Outch... that isn't a ready signal. It's dead, Jim! @@ -786,11 +787,9 @@ static int create_process(apr_pool_t *p, HANDLE *child_proc, HANDLE *child_exit_ SetEvent(hExitEvent); apr_pool_destroy(ptemp); CloseHandle(hExitEvent); - CloseHandle(waitlist[waitlist_ready]); CloseHandle(new_child.hproc); return -1; } - CloseHandle(waitlist[waitlist_ready]); if (send_listeners_to_child(ptemp, new_child.pid, new_child.in)) { /*