diff options
author | aaron <aaron@13f79535-47bb-0310-9956-ffa450edef68> | 2002-07-30 17:01:38 +0000 |
---|---|---|
committer | aaron <aaron@13f79535-47bb-0310-9956-ffa450edef68> | 2002-07-30 17:01:38 +0000 |
commit | 81cf9a6dfc2deaf44ce7e69da98d5d2e9e266cfe (patch) | |
tree | 9e1e50a87fb14bd743e37d973430d9b70f784cc8 /locks | |
parent | cd688acab82220f345d2b40d3858a48c9f637c56 (diff) | |
download | libapr-81cf9a6dfc2deaf44ce7e69da98d5d2e9e266cfe.tar.gz |
When we are destroying a mutex we don't know if it is locked or not,
so we shouldn't try to unlock the mutex.
Submitted by: Philip Martin <philip@codematters.co.uk>
Reviewed by: Aaron Bannert
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63742 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'locks')
-rw-r--r-- | locks/unix/thread_mutex.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/locks/unix/thread_mutex.c b/locks/unix/thread_mutex.c index 8245781c1..f27b1d1cd 100644 --- a/locks/unix/thread_mutex.c +++ b/locks/unix/thread_mutex.c @@ -63,7 +63,6 @@ static apr_status_t thread_mutex_cleanup(void *data) apr_thread_mutex_t *mutex = (apr_thread_mutex_t *)data; apr_status_t rv; - pthread_mutex_unlock(&mutex->mutex); rv = pthread_mutex_destroy(&mutex->mutex); #ifdef PTHREAD_SETS_ERRNO if (rv) { |