From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UpPUp-0005jG-T9 for barebox@lists.infradead.org; Wed, 19 Jun 2013 21:00:52 +0000 From: Sascha Hauer Date: Wed, 19 Jun 2013 23:00:29 +0200 Message-Id: <1371675629-7147-1-git-send-email-s.hauer@pengutronix.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH] partitions: dos: fix memory leak in nt disk signature To: barebox@lists.infradead.org Signed-off-by: Sascha Hauer --- common/partitions/dos.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/partitions/dos.c b/common/partitions/dos.c index b9f31c3..29f1375 100644 --- a/common/partitions/dos.c +++ b/common/partitions/dos.c @@ -107,6 +107,8 @@ static int dos_get_disk_signature(struct param_d *p, void *_priv) priv->signature = le32_to_cpup((__le32 *)(buf + 0x1b8)); + free(buf); + return 0; } -- 1.8.3.1 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox