mirror of https://gitee.com/openkylin/libvirt.git
Fix virInterfaceIpDefPtr leak during virInterfaceIpDefFree
* src/conf/interface_conf.c: forgot to free the structure itself
This commit is contained in:
parent
3d4c1d94d7
commit
23eaae9aff
src/conf
|
@ -58,6 +58,7 @@ void virInterfaceIpDefFree(virInterfaceIpDefPtr def) {
|
|||
if (def == NULL)
|
||||
return;
|
||||
VIR_FREE(def->address);
|
||||
VIR_FREE(def);
|
||||
}
|
||||
|
||||
static
|
||||
|
|
Loading…
Reference in New Issue