summaryrefslogtreecommitdiffstats
path: root/mapfile.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2009-01-08 09:25:31 +1100
committerNeilBrown <neilb@suse.de>2009-01-08 09:25:31 +1100
commit89a10d84cb76492b7d8ea96d0a206b54702bcaff (patch)
treeb91ea8cf18e46e8cfab9d1814cb65fbfa89968c1 /mapfile.c
parent3a56f223e94106102eed3fd2b08d3ecad353361b (diff)
downloadmdadm-89a10d84cb76492b7d8ea96d0a206b54702bcaff.tar.gz
mdadm-89a10d84cb76492b7d8ea96d0a206b54702bcaff.tar.xz
mdadm-89a10d84cb76492b7d8ea96d0a206b54702bcaff.zip
Free mdstat data structures properly.
In one case we called 'free' instead of 'mdstat_free'. In others we didn't free at all. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'mapfile.c')
-rw-r--r--mapfile.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mapfile.c b/mapfile.c
index 0d0aa39..59cc6c6 100644
--- a/mapfile.c
+++ b/mapfile.c
@@ -245,6 +245,7 @@ void RebuildMap(void)
break;
}
}
+ free_mdstat(mdstat);
map_write(map);
map_free(map);
}