[PATCH] partitions: dos: fix memory leak in nt disk signature
Sascha Hauer
s.hauer at pengutronix.de
Wed Jun 19 17:00:29 EDT 2013
Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
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
More information about the barebox
mailing list