From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=33691 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PrD18-0003FK-Ce for qemu-devel@nongnu.org; Sun, 20 Feb 2011 12:24:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PrD17-0006jx-2s for qemu-devel@nongnu.org; Sun, 20 Feb 2011 12:24:18 -0500 Received: from hall.aurel32.net ([88.191.126.93]:58337) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PrD16-0006jp-RU for qemu-devel@nongnu.org; Sun, 20 Feb 2011 12:24:17 -0500 Date: Sun, 20 Feb 2011 18:24:12 +0100 From: Aurelien Jarno Subject: Re: [Qemu-devel] [PATCH 1/3] pci: Fix memory leak Message-ID: <20110220172411.GN18619@volta.aurel32.net> References: <1295697766-8851-1-git-send-email-weil@mail.berlios.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <1295697766-8851-1-git-send-email-weil@mail.berlios.de> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Weil Cc: QEMU Developers On Sat, Jan 22, 2011 at 01:02:44PM +0100, Stefan Weil wrote: > Signed-off-by: Stefan Weil > --- > hw/pci.c | 1 + > 1 files changed, 1 insertions(+), 0 deletions(-) Thanks all three patches applied. > diff --git a/hw/pci.c b/hw/pci.c > index 63f476a..38a60ae 100644 > --- a/hw/pci.c > +++ b/hw/pci.c > @@ -1877,6 +1877,7 @@ static int pci_add_option_rom(PCIDevice *pdev, bool is_default_rom) > if (size < 0) { > error_report("%s: failed to find romfile \"%s\"", > __FUNCTION__, pdev->romfile); > + qemu_free(path); > return -1; > } > if (size & (size - 1)) { > -- > 1.7.2.3 > > > -- Aurelien Jarno GPG: 1024D/F1BCDB73 aurelien@aurel32.net http://www.aurel32.net