summaryrefslogtreecommitdiffstats
path: root/Detail.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2009-10-22 11:00:56 +1100
committerNeilBrown <neilb@suse.de>2009-10-22 11:00:56 +1100
commit0eb26465c0a14d707ca00f4f7bcdb67bde36f706 (patch)
tree60ccd8c30d747fce5a40926cddf6af0a1e9531d4 /Detail.c
parent1799c9e8f8465fdbd583dfe6381400e1d01d4954 (diff)
downloadmdadm-0eb26465c0a14d707ca00f4f7bcdb67bde36f706.tar.gz
mdadm-0eb26465c0a14d707ca00f4f7bcdb67bde36f706.tar.xz
mdadm-0eb26465c0a14d707ca00f4f7bcdb67bde36f706.zip
Free some malloced memory that wasn't being freed.
As mdadm is normally a short-lived program it isn't always necessary to free memory that was allocated, as the 'exit()' call will automatically free everything. But it is more obviously correct if the 'free' is there. So this patch add a few calls to 'free' Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'Detail.c')
-rw-r--r--Detail.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Detail.c b/Detail.c
index e41ad1b..544cfdb 100644
--- a/Detail.c
+++ b/Detail.c
@@ -541,6 +541,7 @@ This is pretty boring
1, avail, avail_disks))
rv = 2;
+ free(disks);
out:
close(fd);
return rv;