mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-02 01:45:17 +00: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,
|
virReportError(VIR_ERR_INTERNAL_ERROR,
|
||||||
_("Active %s devices on bus with %s, not doing bus reset"),
|
_("Active %s devices on bus with %s, not doing bus reset"),
|
||||||
conflict->name, dev->name);
|
conflict->name, dev->name);
|
||||||
|
virPCIDeviceFree(conflict);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user