提交 e1019607 编写于 作者: M Michal Privoznik

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: NMichal Privoznik <mprivozn@redhat.com>
Reviewed-by: NErik Skultety <eskultet@redhat.com>
上级 e634c7cd
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册