mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-07-31 22:17:17 +00:00
virnetdevip: Free data.devices in virNetDevIPCheckIPv6Forwarding() too
We are freeing the individual strings (which were filled by virNetDevIPCheckIPv6ForwardingCallback()) but not the array itself. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Erik Skultety <eskultet@redhat.com>
This commit is contained in:
parent
e634c7cd0d
commit
e101960761
@ -651,8 +651,7 @@ virNetDevIPCheckIPv6Forwarding(void)
|
|||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
nlmsg_free(nlmsg);
|
nlmsg_free(nlmsg);
|
||||||
for (i = 0; i < data.ndevices; i++)
|
virStringListFreeCount(data.devices, data.ndevices);
|
||||||
VIR_FREE(data.devices[i]);
|
|
||||||
return valid;
|
return valid;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user