From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:54782) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCo1x-0008Rg-SN for qemu-devel@nongnu.org; Tue, 05 Mar 2013 04:19:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UCo1w-0004PG-T9 for qemu-devel@nongnu.org; Tue, 05 Mar 2013 04:19:29 -0500 Received: from mail-we0-x236.google.com ([2a00:1450:400c:c03::236]:57162) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCo1w-0004Oy-NK for qemu-devel@nongnu.org; Tue, 05 Mar 2013 04:19:28 -0500 Received: by mail-we0-f182.google.com with SMTP id t57so5851512wey.13 for ; Tue, 05 Mar 2013 01:19:27 -0800 (PST) Date: Tue, 5 Mar 2013 10:19:23 +0100 From: Stefan Hajnoczi Message-ID: <20130305091923.GA1938@stefanha-thinkpad.redhat.com> References: <1361757620-23318-1-git-send-email-cardoe@cardoe.com> <1362207528-27804-1-git-send-email-cardoe@cardoe.com> <1362207528-27804-3-git-send-email-cardoe@cardoe.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1362207528-27804-3-git-send-email-cardoe@cardoe.com> Subject: Re: [Qemu-devel] [PATCHv2 2/2] bridge helper: support conf dirs List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Doug Goldstein Cc: Richa Marwaha , Anthony Liguori , Corey Bryant , qemu-devel@nongnu.org On Sat, Mar 02, 2013 at 12:58:48AM -0600, Doug Goldstein wrote: > @@ -152,6 +199,14 @@ static int parse_acl_file(const char *filename, ACLList *acl_list) > failure: > fclose(f); > > + if (include_list) { > + for (i = 0; i < include_count; i++) { > + if (include_list[i]) > + free(include_list[i]); free(NULL) is a nop so the if isn't necessary - you can free(include_list[i]) unconditionally.