mirror of https://gitee.com/openkylin/libvirt.git
conf: Fix memory leak in virNetworkDNSDefFormat
This commit is contained in:
parent
eb9dee2b10
commit
c9f604fc4c
|
@ -945,6 +945,7 @@ virNetworkDNSDefFormat(virBufferPtr buf,
|
|||
def->hosts[ii].names[j]);
|
||||
|
||||
virBufferAsprintf(buf, " </host>\n");
|
||||
VIR_FREE(ip);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue