diff --git a/src/util/virpci.c b/src/util/virpci.c index 0098d6c47215324e024676e919dd463a81b53fa1..f1d4499f8bbd979bd34b7bd8c2319aaefc150c25 100644 --- a/src/util/virpci.c +++ b/src/util/virpci.c @@ -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; }