The inet_rtnl_cb_data struct allocated in __connman_inet_rtnl_talk()
was not deallocated if we expected data from kernel.
---
src/inet.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/src/inet.c b/src/inet.c
index db6af38..ac45eb4 100644
--- a/src/inet.c
+++ b/src/inet.c
@@ -1898,13 +1898,7 @@ static int inet_rtnl_recv(GIOChannel *chan, gpointer
user_data)
rtnl_data->callback(h, rtnl_data->user_data);
- if (rtnl_data->rtnl_timeout > 0) {
- g_source_remove(rtnl_data->rtnl_timeout);
- rtnl_data->rtnl_timeout = 0;
- }
-
- __connman_inet_rtnl_close(rth);
- g_free(rth);
+ inet_rtnl_cleanup(rtnl_data);
}
return 0;
--
1.7.11.4
_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman