mirror of https://gitee.com/openkylin/libvirt.git
virhostdev: Don't unref @pcidevs twice
In f08e6883cb
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>
This commit is contained in:
parent
926b7b6e6c
commit
894f3e0e57
|
@ -1091,7 +1091,6 @@ virHostdevReAttachPCIDevices(virHostdevManagerPtr mgr,
|
|||
|
||||
virObjectUnlock(mgr->activePCIHostdevs);
|
||||
virObjectUnlock(mgr->inactivePCIHostdevs);
|
||||
virObjectUnref(pcidevs);
|
||||
}
|
||||
|
||||
int
|
||||
|
|
Loading…
Reference in New Issue