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)
|
||||
goto cleanup;
|
||||
virBufferAsprintf(&configbuf, "%s\n", addr);
|
||||
VIR_FREE(addr);
|
||||
} else {
|
||||
/* "don't forward requests for this domain" */
|
||||
virBufferAddLit(&configbuf, "#\n");
|
||||
|
Loading…
x
Reference in New Issue
Block a user