From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1bINIE-0001rS-2O for mharc-grub-devel@gnu.org; Wed, 29 Jun 2016 17:45:10 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59599) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bINIB-0001p1-Cb for grub-devel@gnu.org; Wed, 29 Jun 2016 17:45:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bINI8-00066H-9s for grub-devel@gnu.org; Wed, 29 Jun 2016 17:45:07 -0400 Received: from userp1040.oracle.com ([156.151.31.81]:22663) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bINI7-00066D-Vh for grub-devel@gnu.org; Wed, 29 Jun 2016 17:45:04 -0400 Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u5TLj2KT024021 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 29 Jun 2016 21:45:03 GMT Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserv0022.oracle.com (8.13.8/8.13.8) with ESMTP id u5TLj2tf011538 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 29 Jun 2016 21:45:02 GMT Received: from abhmp0005.oracle.com (abhmp0005.oracle.com [141.146.116.11]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id u5TLj1aI021868 for ; Wed, 29 Jun 2016 21:45:02 GMT Received: from ca-qasparc20.us.oracle.com (/10.147.24.73) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 29 Jun 2016 14:45:01 -0700 From: Eric Snowberg To: grub-devel@gnu.org Cc: Eric Snowberg Subject: [PATCH 03/15] grub-install: fix memory leak Date: Wed, 29 Jun 2016 14:43:16 -0700 Message-Id: X-Mailer: git-send-email 1.7.1 In-Reply-To: References: In-Reply-To: References: X-Source-IP: aserv0022.oracle.com [141.146.126.234] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 156.151.31.81 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Jun 2016 21:45:08 -0000 Fix memory leak Signed-off-by: Eric Snowberg --- util/grub-install.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/util/grub-install.c b/util/grub-install.c index 6c89c2b..7394739 100644 --- a/util/grub-install.c +++ b/util/grub-install.c @@ -1468,6 +1468,7 @@ main (int argc, char *argv[]) { grub_util_fprint_full_disk_name (load_cfg_f, g, dev); fprintf (load_cfg_f, " "); + free (g); } if (dev != grub_dev) grub_device_close (dev); -- 1.7.1