summaryrefslogtreecommitdiffstats
path: root/managemon.c
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2008-07-12 20:27:33 +1000
committerNeil Brown <neilb@suse.de>2008-07-12 20:27:33 +1000
commit904c1ef77bcb3e3b151f544acf104cd36acdc5f6 (patch)
treef9c664916c57e355ab57e2ab98c42664a4e4177a /managemon.c
parentd024b0a7eb520d5d7f2238b31c18eabe3775e731 (diff)
downloadmdadm-904c1ef77bcb3e3b151f544acf104cd36acdc5f6.tar.gz
mdadm-904c1ef77bcb3e3b151f544acf104cd36acdc5f6.tar.xz
mdadm-904c1ef77bcb3e3b151f544acf104cd36acdc5f6.zip
Fix freeing of updates that have been handled by monitor.
Yes, we do want to free the buf, and the space too if it is still there.
Diffstat (limited to 'managemon.c')
-rw-r--r--managemon.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/managemon.c b/managemon.c
index 9f3520e..4592a99 100644
--- a/managemon.c
+++ b/managemon.c
@@ -199,7 +199,9 @@ void check_update_queue(struct supertype *container)
while (update_queue_handled) {
struct metadata_update *this = update_queue_handled;
update_queue_handled = this->next;
-// free(this->buf);
+ free(this->buf);
+ if (this->space)
+ free(this->space);
free(this);
}
if (update_queue == NULL &&