From 02483b1dcad0c4a896f543913de9b2445daec369 Mon Sep 17 00:00:00 2001 From: John Ferlan Date: Sat, 20 Aug 2016 09:26:26 -0400 Subject: [PATCH] network: Need to free formatted addr in networkDnsmasqConfContents Commit id '0b6336c2' formatted the 'addr', but didn't VIR_FREE it. Found by Coverity. --- src/network/bridge_driver.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/network/bridge_driver.c b/src/network/bridge_driver.c index 74f75d015f..7b99acafa8 100644 --- a/src/network/bridge_driver.c +++ b/src/network/bridge_driver.c @@ -969,6 +969,7 @@ networkDnsmasqConfContents(virNetworkObjPtr network, if (!addr) goto cleanup; virBufferAsprintf(&configbuf, "%s\n", addr); + VIR_FREE(addr); } else { /* "don't forward requests for this domain" */ virBufferAddLit(&configbuf, "#\n"); -- GitLab