From 7d28b3475db69c5b2e5663d1e127e89dc5533e24 Mon Sep 17 00:00:00 2001 From: Aaron Bannert Date: Tue, 30 Jul 2002 17:01:38 +0000 Subject: [PATCH] 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 Reviewed by: Aaron Bannert git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63742 13f79535-47bb-0310-9956-ffa450edef68 --- locks/unix/thread_mutex.c | 1 - 1 file changed, 1 deletion(-) diff --git a/locks/unix/thread_mutex.c b/locks/unix/thread_mutex.c index 8245781c1a7..f27b1d1cd16 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) {