diff options
Diffstat (limited to 'managemon.c')
-rw-r--r-- | managemon.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/managemon.c b/managemon.c index 2301946..c5ba2f4 100644 --- a/managemon.c +++ b/managemon.c @@ -259,6 +259,7 @@ static void manage_new(struct mdstat_ent *mdstat, new->sync_pos_fd = sysfs_open(new->devnum, NULL, "sync_completed"); new->sync_pos = 0; + sysfs_free(mdi); // finds and compares. if (container->ss->open_new(container, new, inst) < 0) { // FIXME close all those files @@ -377,6 +378,8 @@ void do_manager(struct supertype *container) read_sock(container); + free_mdstat(mdstat); + mdstat_wait_fd(container->sock); } while(1); } |