From: Wang Rui Date: Thu, 28 Aug 2014 10:20:56 +0000 (+0800) Subject: util: Resolve Coverity RESOURCE_LEAK X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=8879185cce4ecb117de222ed3c1f1917579f11bc;p=people%2Fliuw%2Flibxenctrl-split%2Flibvirt.git util: Resolve Coverity RESOURCE_LEAK Coverity determined that 'conflict' would be leaked. Signed-off-by: Wang Rui --- diff --git a/src/util/virpci.c b/src/util/virpci.c index 0098d6c47..f1d4499f8 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; }