summaryrefslogtreecommitdiff
path: root/src/inet.c
diff options
context:
space:
mode:
authorJukka Rissanen <jukka.rissanen@linux.intel.com>2012-10-01 10:15:42 (GMT)
committerPatrik Flykt <patrik.flykt@linux.intel.com>2012-10-01 10:47:29 (GMT)
commit398b726ea635445a43b1e86cf6575dfb1db97deb (patch)
tree621aedd88fe46a9e0ca77124bb2fb07ab5086f0a /src/inet.c
parent1a77cd3c3629dc1008e550716f41c591656c9351 (diff)
downloadconnman-398b726ea635445a43b1e86cf6575dfb1db97deb.zip
connman-398b726ea635445a43b1e86cf6575dfb1db97deb.tar.gz
connman-398b726ea635445a43b1e86cf6575dfb1db97deb.tar.bz2
inet: Cleanup rtnl callback data properly
The inet_rtnl_cb_data struct allocated in __connman_inet_rtnl_talk() was not deallocated if we expected data from kernel.
Diffstat (limited to 'src/inet.c')
-rw-r--r--src/inet.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/inet.c b/src/inet.c
index 2dcb63c..be69aca 100644
--- a/src/inet.c
+++ b/src/inet.c
@@ -2071,13 +2071,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;