summaryrefslogtreecommitdiff
path: root/locks
diff options
context:
space:
mode:
authorJoe Orton <jorton@apache.org>2004-06-14 09:19:15 +0000
committerJoe Orton <jorton@apache.org>2004-06-14 09:19:15 +0000
commit91f4c5876a39b68855b0f4f7d7167e303377b062 (patch)
treebe4643001582ce539b9408b1cc5734ec1174a1bb /locks
parent5aa1cff01d13456d34e6746aa823e927a9f71c6f (diff)
downloadapr-91f4c5876a39b68855b0f4f7d7167e303377b062.tar.gz
* locks/unix/proc_mutex.c (proc_mutex_proc_pthread_cleanup): Fix
memory leakup; always unmap the mmap'ed region. PR: 24049 Submitted by: Kohn Emil Dan <emild cs.technion.ac.il> git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@65189 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'locks')
-rw-r--r--locks/unix/proc_mutex.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/locks/unix/proc_mutex.c b/locks/unix/proc_mutex.c
index 541743acc..ddc581caa 100644
--- a/locks/unix/proc_mutex.c
+++ b/locks/unix/proc_mutex.c
@@ -264,13 +264,13 @@ static apr_status_t proc_mutex_proc_pthread_cleanup(void *mutex_)
rv = errno;
#endif
return rv;
- }
- if (munmap((caddr_t)mutex->pthread_interproc, sizeof(pthread_mutex_t))){
- return errno;
}
}
+ if (munmap((caddr_t)mutex->pthread_interproc, sizeof(pthread_mutex_t))) {
+ return errno;
+ }
return APR_SUCCESS;
-}
+}
static apr_status_t proc_mutex_proc_pthread_create(apr_proc_mutex_t *new_mutex,
const char *fname)