summaryrefslogtreecommitdiff
path: root/locks
diff options
context:
space:
mode:
authorjorton <jorton@13f79535-47bb-0310-9956-ffa450edef68>2003-06-08 13:42:20 +0000
committerjorton <jorton@13f79535-47bb-0310-9956-ffa450edef68>2003-06-08 13:42:20 +0000
commit4f461ea69da6a3d93b88c3c4e1b4410fe83ec16f (patch)
treec865dcb175e5d15c050d598064ab0bf423c5bc4c /locks
parent053047ba767801714f129c716c57b1e320df486b (diff)
downloadlibapr-4f461ea69da6a3d93b88c3c4e1b4410fe83ec16f.tar.gz
Error handling fix (unrelated to previous changes): don't call
pthread_mutex_destroy(NULL) if pthread_mutex_init() fails. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64534 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'locks')
-rw-r--r--locks/unix/thread_mutex.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/locks/unix/thread_mutex.c b/locks/unix/thread_mutex.c
index 130a5cb98..39062a2bd 100644
--- a/locks/unix/thread_mutex.c
+++ b/locks/unix/thread_mutex.c
@@ -92,7 +92,6 @@ APR_DECLARE(apr_status_t) apr_thread_mutex_create(apr_thread_mutex_t **mutex,
#ifdef PTHREAD_SETS_ERRNO
rv = errno;
#endif
- thread_mutex_cleanup(new_mutex);
return rv;
}