mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-26 03:21:44 +03:00
util: Resolve Coverity RESOURCE_LEAK
Coverity determined that 'conflict' would be leaked. Signed-off-by: Wang Rui <moon.wangrui@huawei.com>
This commit is contained in:
parent
89a706681c
commit
8879185cce
@ -801,6 +801,7 @@ virPCIDeviceTrySecondaryBusReset(virPCIDevicePtr dev,
|
||||
virReportError(VIR_ERR_INTERNAL_ERROR,
|
||||
_("Active %s devices on bus with %s, not doing bus reset"),
|
||||
conflict->name, dev->name);
|
||||
virPCIDeviceFree(conflict);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user