apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bo...@apache.org
Subject svn commit: r676800 - /apr/apr-util/trunk/misc/apr_reslist.c
Date Tue, 15 Jul 2008 05:22:36 GMT
Author: bojan
Date: Mon Jul 14 22:22:35 2008
New Revision: 676800

URL: http://svn.apache.org/viewvc?rev=676800&view=rev
Log:
Unlock list mutex before destroying it.
Manual page for pthread_mutex_destroy() states:
Attempting to destroy a locked mutex results in undefined behavior.

Modified:
    apr/apr-util/trunk/misc/apr_reslist.c

Modified: apr/apr-util/trunk/misc/apr_reslist.c
URL: http://svn.apache.org/viewvc/apr/apr-util/trunk/misc/apr_reslist.c?rev=676800&r1=676799&r2=676800&view=diff
==============================================================================
--- apr/apr-util/trunk/misc/apr_reslist.c (original)
+++ apr/apr-util/trunk/misc/apr_reslist.c Mon Jul 14 22:22:35 2008
@@ -158,6 +158,7 @@
     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);
 



Mime
View raw message