From 1a86acbaea8f970793f101a44a96d846d68cbcaf Mon Sep 17 00:00:00 2001 From: Jukka Rissanen Date: Fri, 31 Dec 2010 11:57:12 +0200 Subject: [PATCH] memoryleak: remove the element for real --- src/connection.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/connection.c b/src/connection.c index cb0ca22..bfd19b5 100644 --- a/src/connection.c +++ b/src/connection.c @@ -408,6 +408,8 @@ static void connection_remove(struct connman_element *element) if (data != NULL) set_default_gateway(data); } + + connman_element_unref(element); } static struct connman_driver connection_driver = { -- 2.7.4