]> xenbits.xensource.com Git - libvirt.git/commitdiff
virhostdev: Don't unref @pcidevs twice
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 9 Sep 2019 14:20:07 +0000 (16:20 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 9 Sep 2019 14:37:23 +0000 (16:37 +0200)
In f08e6883cb4 I've made @pcidevs in
virHostdevReAttachPCIDevices() to be automatically unrefed using
VIR_AUTOUNREF() but I forgot to remove the line that explicitly
unrefs the object at the end of the function.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/util/virhostdev.c

index d710193b94d5e86d11c0ce29afa60844fa496ede..41fcab722254ec70b9edc8ebc38c061dd62e890f 100644 (file)
@@ -1091,7 +1091,6 @@ virHostdevReAttachPCIDevices(virHostdevManagerPtr mgr,
 
     virObjectUnlock(mgr->activePCIHostdevs);
     virObjectUnlock(mgr->inactivePCIHostdevs);
-    virObjectUnref(pcidevs);
 }
 
 int