You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by bo...@apache.org on 2008/08/07 23:29:23 UTC
svn commit: r683719 - /apr/apr-util/branches/1.3.x/misc/apr_reslist.c
Author: bojan
Date: Thu Aug 7 14:29:23 2008
New Revision: 683719
URL: http://svn.apache.org/viewvc?rev=683719&view=rev
Log:
Backport r683517 and r683520 from the trunk.
Destroy already created resources if create fails.
Modified:
apr/apr-util/branches/1.3.x/misc/apr_reslist.c
Modified: apr/apr-util/branches/1.3.x/misc/apr_reslist.c
URL: http://svn.apache.org/viewvc/apr/apr-util/branches/1.3.x/misc/apr_reslist.c?rev=683719&r1=683718&r2=683719&view=diff
==============================================================================
--- apr/apr-util/branches/1.3.x/misc/apr_reslist.c (original)
+++ apr/apr-util/branches/1.3.x/misc/apr_reslist.c Thu Aug 7 14:29:23 2008
@@ -275,6 +275,9 @@
rv = reslist_maint(rl);
if (rv != APR_SUCCESS) {
+ /* Destroy what we've created so far.
+ */
+ reslist_cleanup(rl);
return rv;
}