apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r683517 - /apr/apr-util/trunk/misc/apr_reslist.c
Date Thu, 07 Aug 2008 05:56:01 GMT
Author: mturk
Date: Wed Aug  6 22:56:01 2008
New Revision: 683517

URL: http://svn.apache.org/viewvc?rev=683517&view=rev
Log:
Destroy already created resources if create fails

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=683517&r1=683516&r2=683517&view=diff
==============================================================================
--- apr/apr-util/trunk/misc/apr_reslist.c (original)
+++ apr/apr-util/trunk/misc/apr_reslist.c Wed Aug  6 22:56:01 2008
@@ -304,6 +304,9 @@
 
     rv = reslist_maint(rl);
     if (rv != APR_SUCCESS) {
+        /* Destroy what we've created so far.
+         */
+        reslist_cleaup(rl);
         return rv;
     }
 



Mime
View raw message