diff options
author | Stefan Hajnoczi <stefanha@redhat.com> | 2020-06-19 11:11:32 +0100 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2020-07-03 09:37:03 +0200 |
commit | f10802d2c9fd8bfd92c70f465da1a5992445157f (patch) | |
tree | 7e0c181984b0c200979340dbef083d505ebdac05 /qemu-storage-daemon.c | |
parent | 5b99bdea842d4190d2471769903cdcc1621eb493 (diff) |
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 <stefanha@redhat.com>
Message-Id: <20200619101132.2401756-3-stefanha@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'qemu-storage-daemon.c')
-rw-r--r-- | qemu-storage-daemon.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/qemu-storage-daemon.c b/qemu-storage-daemon.c index a01cbd6371..7e9b0e0d3f 100644 --- a/qemu-storage-daemon.c +++ b/qemu-storage-daemon.c @@ -335,5 +335,9 @@ int main(int argc, char *argv[]) main_loop_wait(false); } + monitor_cleanup(); + qemu_chr_cleanup(); + user_creatable_cleanup(); + return EXIT_SUCCESS; } |