You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by tr...@apache.org on 2013/10/21 13:47:35 UTC

svn commit: r1534103 - in /apr/apr/branches/1.5.x: ./ threadproc/win32/proc.c

Author: trawick
Date: Mon Oct 21 11:47:34 2013
New Revision: 1534103

URL: http://svn.apache.org/r1534103
Log:
merge r1372093 from trunk:

release critical section before returning on error path

Modified:
    apr/apr/branches/1.5.x/   (props changed)
    apr/apr/branches/1.5.x/threadproc/win32/proc.c

Propchange: apr/apr/branches/1.5.x/
------------------------------------------------------------------------------
  Merged /apr/apr/trunk:r1372093

Modified: apr/apr/branches/1.5.x/threadproc/win32/proc.c
URL: http://svn.apache.org/viewvc/apr/apr/branches/1.5.x/threadproc/win32/proc.c?rev=1534103&r1=1534102&r2=1534103&view=diff
==============================================================================
--- apr/apr/branches/1.5.x/threadproc/win32/proc.c (original)
+++ apr/apr/branches/1.5.x/threadproc/win32/proc.c Mon Oct 21 11:47:34 2013
@@ -853,6 +853,7 @@ APR_DECLARE(apr_status_t) apr_proc_creat
                 rv = apr_get_os_error();
                 CloseHandle(attr->user_token);
                 attr->user_token = NULL;
+                LeaveCriticalSection(&proc_lock);
                 return rv;
             }
             rv = CreateProcessAsUserW(attr->user_token,