mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-09-09 01:04:59 +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