From commits-return-9886-apmail-apr-commits-archive=apr.apache.org@apr.apache.org Thu Aug 07 05:56:53 2008 Return-Path: Delivered-To: apmail-apr-commits-archive@www.apache.org Received: (qmail 20872 invoked from network); 7 Aug 2008 05:56:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Aug 2008 05:56:53 -0000 Received: (qmail 3918 invoked by uid 500); 7 Aug 2008 05:56:52 -0000 Delivered-To: apmail-apr-commits-archive@apr.apache.org Received: (qmail 3862 invoked by uid 500); 7 Aug 2008 05:56:52 -0000 Mailing-List: contact commits-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: Reply-To: dev@apr.apache.org List-Id: Delivered-To: mailing list commits@apr.apache.org Received: (qmail 3853 invoked by uid 99); 7 Aug 2008 05:56:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Aug 2008 22:56:52 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Aug 2008 05:56:04 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 1737923889A0; Wed, 6 Aug 2008 22:56:02 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r683517 - /apr/apr-util/trunk/misc/apr_reslist.c Date: Thu, 07 Aug 2008 05:56:01 -0000 To: commits@apr.apache.org From: mturk@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20080807055602.1737923889A0@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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; }