summaryrefslogtreecommitdiffstats
path: root/common/partitions
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2013-06-10 16:34:49 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2013-06-19 22:59:55 +0200
commit7c3603a199873319cbff82fe07a887ccf3452b9b (patch)
treeaa5a595176ffc712312636a1fc6bfd62768fef43 /common/partitions
parent40c4e61554adc11822e68e0dc45f73e17a2a3094 (diff)
downloadbarebox-7c3603a199873319cbff82fe07a887ccf3452b9b.tar.gz
partitions: dos: fix memory leak in nt disk signature
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/partitions')
-rw-r--r--common/partitions/dos.c2
1 files changed, 2 insertions, 0 deletions
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;
}