network: Need to free formatted addr in networkDnsmasqConfContents

Commit id '0b6336c2' formatted the 'addr', but didn't VIR_FREE it.

Found by Coverity.
This commit is contained in:
John Ferlan 2016-08-20 09:26:26 -04:00
parent f9edff30fe
commit 02483b1dca

View File

@ -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");