mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-02 01:45:17 +00:00
Unref the cfg in qemuDomainAttachHostPCIDevice()
Signed-off-by: Shivaprasad G Bhat <sbhat@linux.vnet.ibm.com>
This commit is contained in:
parent
cb0159df9f
commit
a24cdf6cf7
@ -1164,7 +1164,7 @@ qemuDomainAttachHostPCIDevice(virQEMUDriverPtr driver,
|
||||
unsigned int flags = 0;
|
||||
|
||||
if (VIR_REALLOC_N(vm->def->hostdevs, vm->def->nhostdevs + 1) < 0)
|
||||
return -1;
|
||||
goto cleanup;
|
||||
|
||||
if (!cfg->relaxedACS)
|
||||
flags |= VIR_HOSTDEV_STRICT_ACS_CHECK;
|
||||
|
Loading…
x
Reference in New Issue
Block a user