mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
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:
parent
f9edff30fe
commit
02483b1dca
@ -969,6 +969,7 @@ networkDnsmasqConfContents(virNetworkObjPtr network,
|
|||||||
if (!addr)
|
if (!addr)
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
virBufferAsprintf(&configbuf, "%s\n", addr);
|
virBufferAsprintf(&configbuf, "%s\n", addr);
|
||||||
|
VIR_FREE(addr);
|
||||||
} else {
|
} else {
|
||||||
/* "don't forward requests for this domain" */
|
/* "don't forward requests for this domain" */
|
||||||
virBufferAddLit(&configbuf, "#\n");
|
virBufferAddLit(&configbuf, "#\n");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user