aaron 2003/10/06 13:34:30
Modified: misc apr_reslist.c
Log:
Fix another memory leak that happens when a constructor returns a failure
code.
Submitted by: Aaron Bannert
Related to PR: 23492
Revision Changes Path
1.6 +1 -0 apr-util/misc/apr_reslist.c
Index: apr_reslist.c
===================================================================
RCS file: /home/cvs/apr-util/misc/apr_reslist.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- apr_reslist.c 6 Oct 2003 20:31:59 -0000 1.5
+++ apr_reslist.c 6 Oct 2003 20:34:30 -0000 1.6
@@ -216,6 +216,7 @@
/* Create the resource */
rv = create_resource(reslist, &res);
if (rv != APR_SUCCESS) {
+ free_container(reslist, res);
apr_thread_mutex_unlock(reslist->listlock);
return rv;
}