]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - managemon.c
Fix freeing of updates that have been handled by monitor.
[thirdparty/mdadm.git] / managemon.c
index 9f3520e8ea8e475e7a535071550fd01943a69aca..4592a9914ff73fda42ea5a5b8b5c64265c3be2e2 100644 (file)
@@ -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 &&