From: Leena Gunda <[email protected]>
Fixes BMC#11878
---
plugins/dnsproxy.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/plugins/dnsproxy.c b/plugins/dnsproxy.c
index 5ce6429..60b7a39 100644
--- a/plugins/dnsproxy.c
+++ b/plugins/dnsproxy.c
@@ -769,11 +769,14 @@ static struct server_data *create_server(const char
*interface,
GList *list;
connman_error("Failed to connect to server %s", server);
- close(sk);
if (data->watch > 0)
g_source_remove(data->watch);
if (data->timeout > 0)
g_source_remove(data->timeout);
+
+ g_io_channel_unref(data->channel);
+ close(sk);
+
g_free(data->server);
g_free(data->interface);
for (list = data->domains; list; list = list->next) {
--
1.7.2.2
_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman