summaryrefslogtreecommitdiff
path: root/locks
diff options
context:
space:
mode:
authorwrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68>2002-07-31 06:08:08 +0000
committerwrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68>2002-07-31 06:08:08 +0000
commitca9658642225d0ee84b6758a76df6c0062688bdd (patch)
tree475617d7089b04664c5e956e5e511534fb21c111 /locks
parent4b7ee5abcb3729345adfa267c34f1fd50308a7a0 (diff)
downloadlibapr-ca9658642225d0ee84b6758a76df6c0062688bdd.tar.gz
Handle leaks right now are a huge problem. Close two of them.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63746 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'locks')
-rw-r--r--locks/win32/proc_mutex.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/locks/win32/proc_mutex.c b/locks/win32/proc_mutex.c
index 19100cdd0..8e25a01ce 100644
--- a/locks/win32/proc_mutex.c
+++ b/locks/win32/proc_mutex.c
@@ -76,10 +76,6 @@ APR_DECLARE(apr_status_t) apr_proc_mutex_create(apr_proc_mutex_t **mutex,
apr_pool_t *pool)
{
HANDLE hMutex;
- SECURITY_ATTRIBUTES sec;
- sec.nLength = sizeof(SECURITY_ATTRIBUTES);
- sec.lpSecurityDescriptor = NULL;
- sec.bInheritHandle = TRUE;
/* With Win2000 Terminal Services, the Mutex name can have a
* "Global\" or "Local\" prefix to explicitly create the object
@@ -94,7 +90,7 @@ APR_DECLARE(apr_status_t) apr_proc_mutex_create(apr_proc_mutex_t **mutex,
fname = apr_pstrdup(pool, fname);
}
- hMutex = CreateMutex(&sec, FALSE, fname);
+ hMutex = CreateMutex(NULL, FALSE, fname);
if (!hMutex) {
return apr_get_os_error();
}
@@ -119,7 +115,7 @@ APR_DECLARE(apr_status_t) apr_proc_mutex_child_init(apr_proc_mutex_t **mutex,
else
fname = apr_pstrdup(pool, fname);
- hMutex = OpenMutex(MUTEX_ALL_ACCESS, TRUE, fname);
+ hMutex = OpenMutex(MUTEX_ALL_ACCESS, FALSE, fname);
if (!hMutex) {
return apr_get_os_error();
}