mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +00:00
domain_conf: Resolve Coverity RESOURCE_LEAK
Commit id 'aa2cc721' added call to virSocketAddrFormat and did not VIR_FREE() the returned memory. Signed-off-by: John Ferlan <jferlan@redhat.com>
This commit is contained in:
parent
3993c2f91c
commit
57e681e529
@ -17212,6 +17212,7 @@ virDomainNetIpsFormat(virBufferPtr buf, virDomainNetIpDefPtr *ips, size_t nips)
|
||||
familyStr = "ipv4";
|
||||
virBufferAsprintf(buf, "<ip address='%s'",
|
||||
ipStr);
|
||||
VIR_FREE(ipStr);
|
||||
if (familyStr)
|
||||
virBufferAsprintf(buf, " family='%s'", familyStr);
|
||||
if (ips[i]->prefix != 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user