]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemu: process: Clear priv->namespaces on VM shutdown
authorPeter Krempa <pkrempa@redhat.com>
Mon, 22 May 2017 11:36:55 +0000 (13:36 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 23 May 2017 14:24:49 +0000 (16:24 +0200)
Otherwise the private data entry would be kept across instances of the
same VM even if it's not configured to do so.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1453142

src/qemu/qemu_process.c

index c19bd292596a139a4b92323a29c4f6371c5767f1..ac17da668636036cd4e9b1c61170067d0bea6f94 100644 (file)
@@ -6449,6 +6449,10 @@ void qemuProcessStop(virQEMUDriverPtr driver,
     /* clean up migration data */
     VIR_FREE(priv->migTLSAlias);
 
+    /* clear previously used namespaces */
+    virBitmapFree(priv->namespaces);
+    priv->namespaces = NULL;
+
     /* The "release" hook cleans up additional resources */
     if (virHookPresent(VIR_HOOK_DRIVER_QEMU)) {
         char *xml = qemuDomainDefFormatXML(driver, vm->def, 0);