]> git.proxmox.com Git - mirror_qemu.git/commitdiff
qemu-storage-daemon: add missing cleanup calls
authorStefan Hajnoczi <stefanha@redhat.com>
Fri, 19 Jun 2020 10:11:32 +0000 (11:11 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 3 Jul 2020 07:37:03 +0000 (09:37 +0200)
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>
qemu-storage-daemon.c

index a01cbd637137db51a91bf2971bea7a8f02083e94..7e9b0e0d3f8838da47d7f443c1dcbb2b526cf0c5 100644 (file)
@@ -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;
 }