From 8879185cce4ecb117de222ed3c1f1917579f11bc Mon Sep 17 00:00:00 2001 From: Wang Rui Date: Thu, 28 Aug 2014 18:20:56 +0800 Subject: [PATCH] util: Resolve Coverity RESOURCE_LEAK Coverity determined that 'conflict' would be leaked. Signed-off-by: Wang Rui --- src/util/virpci.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/util/virpci.c b/src/util/virpci.c index 0098d6c472..f1d4499f8b 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; } -- GitLab