mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 03:12:22 +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:
|
||||
nlmsg_free(nlmsg);
|
||||
for (i = 0; i < data.ndevices; i++)
|
||||
VIR_FREE(data.devices[i]);
|
||||
virStringListFreeCount(data.devices, data.ndevices);
|
||||
return valid;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user