Skip to content

Commit

Permalink
When we are destroying a mutex we don't know if it is locked or not,
Browse files Browse the repository at this point in the history
so we shouldn't try to unlock the mutex.

Submitted by:	Philip Martin <[email protected]>
Reviewed by:	Aaron Bannert


git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63742 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
abannert committed Jul 30, 2002
1 parent 45727a5 commit 7d28b34
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion locks/unix/thread_mutex.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 7d28b34

Please sign in to comment.