platform: fix memleak in link_delete()
Turns out, the valgrind suppression was hiding a memleak
This commit is contained in:
@@ -2516,7 +2516,7 @@ static gboolean
|
|||||||
link_delete (NMPlatform *platform, int ifindex)
|
link_delete (NMPlatform *platform, int ifindex)
|
||||||
{
|
{
|
||||||
NMLinuxPlatformPrivate *priv = NM_LINUX_PLATFORM_GET_PRIVATE (platform);
|
NMLinuxPlatformPrivate *priv = NM_LINUX_PLATFORM_GET_PRIVATE (platform);
|
||||||
struct rtnl_link *rtnllink = rtnl_link_get (priv->link_cache, ifindex);
|
auto_nl_object struct rtnl_link *rtnllink = rtnl_link_get (priv->link_cache, ifindex);
|
||||||
|
|
||||||
if (!rtnllink) {
|
if (!rtnllink) {
|
||||||
platform->error = NM_PLATFORM_ERROR_NOT_FOUND;
|
platform->error = NM_PLATFORM_ERROR_NOT_FOUND;
|
||||||
|
@@ -400,22 +400,6 @@
|
|||||||
# libnl3
|
# libnl3
|
||||||
###############################################################
|
###############################################################
|
||||||
|
|
||||||
{
|
|
||||||
libnl_01
|
|
||||||
Memcheck:Leak
|
|
||||||
match-leak-kinds: definite
|
|
||||||
fun:calloc
|
|
||||||
fun:nl_object_alloc
|
|
||||||
fun:link_msg_parser
|
|
||||||
fun:__pickup_answer
|
|
||||||
fun:nl_cb_call
|
|
||||||
fun:recvmsgs
|
|
||||||
fun:nl_recvmsgs_report
|
|
||||||
fun:nl_recvmsgs
|
|
||||||
fun:nl_pickup
|
|
||||||
fun:rtnl_link_get_kernel
|
|
||||||
...
|
|
||||||
}
|
|
||||||
{
|
{
|
||||||
# fixed by https://github.com/thom311/libnl/commit/d65c32a7205e679c7fc13f0e4565b13e698ba906
|
# fixed by https://github.com/thom311/libnl/commit/d65c32a7205e679c7fc13f0e4565b13e698ba906
|
||||||
libnl_rtnl_link_set_type_01
|
libnl_rtnl_link_set_type_01
|
||||||
|
Reference in New Issue
Block a user