diff options
author | bojan <bojan@13f79535-47bb-0310-9956-ffa450edef68> | 2008-07-15 05:22:35 +0000 |
---|---|---|
committer | bojan <bojan@13f79535-47bb-0310-9956-ffa450edef68> | 2008-07-15 05:22:35 +0000 |
commit | 6dd340aadc4fa0e98cdf0a5174881a62c9a71971 (patch) | |
tree | 52db42f4195d98168d8f86ac2adea6bd789d20f1 | |
parent | 04fa00548bd2ad6ce01d39015738a11dc4c83786 (diff) | |
download | libapr-util-6dd340aadc4fa0e98cdf0a5174881a62c9a71971.tar.gz |
Unlock list mutex before destroying it.
Manual page for pthread_mutex_destroy() states:
Attempting to destroy a locked mutex results in undefined behavior.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@676800 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | misc/apr_reslist.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/misc/apr_reslist.c b/misc/apr_reslist.c index 14b7e6c4..d26c948d 100644 --- a/misc/apr_reslist.c +++ b/misc/apr_reslist.c @@ -158,6 +158,7 @@ static apr_status_t reslist_cleanup(void *data_) assert(rl->nidle == 0); assert(rl->ntotal == 0); + apr_thread_mutex_unlock(rl->listlock); apr_thread_mutex_destroy(rl->listlock); apr_thread_cond_destroy(rl->avail); |