summaryrefslogtreecommitdiff
path: root/threadproc
diff options
context:
space:
mode:
authorJeff Trawick <trawick@apache.org>2012-08-12 13:29:36 +0000
committerJeff Trawick <trawick@apache.org>2012-08-12 13:29:36 +0000
commitbeb77690cd3d413cfef92b7ce05f644655529e04 (patch)
treebc915acaf58675b71e8ab9ba02cb506a0c3d08bb /threadproc
parent2590fc0619cbd78696adc697a828b0d529fcb752 (diff)
downloadapr-beb77690cd3d413cfef92b7ce05f644655529e04.tar.gz
release critical section before returning on error path
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1372093 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'threadproc')
-rw-r--r--threadproc/win32/proc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/threadproc/win32/proc.c b/threadproc/win32/proc.c
index c54d556af..941449058 100644
--- a/threadproc/win32/proc.c
+++ b/threadproc/win32/proc.c
@@ -853,6 +853,7 @@ APR_DECLARE(apr_status_t) apr_proc_create(apr_proc_t *new,
rv = apr_get_os_error();
CloseHandle(attr->user_token);
attr->user_token = NULL;
+ LeaveCriticalSection(&proc_lock);
return rv;
}
rv = CreateProcessAsUserW(attr->user_token,