Skip to content

Commit f10802d

Browse files
stefanhaRHkevmw
authored andcommitted
qemu-storage-daemon: add missing cleanup calls
Several components used by qemu-storage-daemon have cleanup functions that aren't called. Keep the "valgrind --leak-check=full" as clean as possible by invoking the necessary cleanup functions. Signed-off-by: Stefan Hajnoczi <[email protected]> Message-Id: <[email protected]> Reviewed-by: Eric Blake <[email protected]> Signed-off-by: Kevin Wolf <[email protected]>
1 parent 5b99bde commit f10802d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

qemu-storage-daemon.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,5 +335,9 @@ int main(int argc, char *argv[])
335335
main_loop_wait(false);
336336
}
337337

338+
monitor_cleanup();
339+
qemu_chr_cleanup();
340+
user_creatable_cleanup();
341+
338342
return EXIT_SUCCESS;
339343
}

0 commit comments

Comments
 (0)