trawick 01/08/09 12:33:58
Modified: memory/unix apr_pools.c
Log:
don't destroy an APR lock which wasn't successfully created;
this fixes a segfault reported by Shail Bhatnagar <[EMAIL PROTECTED]>
Revision Changes Path
1.107 +0 -2 apr/memory/unix/apr_pools.c
Index: apr_pools.c
===================================================================
RCS file: /home/cvs/apr/memory/unix/apr_pools.c,v
retrieving revision 1.106
retrieving revision 1.107
diff -u -r1.106 -r1.107
--- apr_pools.c 2001/08/02 05:24:42 1.106
+++ apr_pools.c 2001/08/09 19:33:58 1.107
@@ -826,13 +826,11 @@
status = apr_lock_create(&alloc_mutex, APR_MUTEX, APR_INTRAPROCESS,
NULL, globalp);
if (status != APR_SUCCESS) {
- apr_lock_destroy(alloc_mutex);
return status;
}
status = apr_lock_create(&spawn_mutex, APR_MUTEX, APR_INTRAPROCESS,
NULL, globalp);
if (status != APR_SUCCESS) {
- apr_lock_destroy(spawn_mutex);
return status;
}
#endif