summaryrefslogtreecommitdiff
path: root/src/connection.c
diff options
context:
space:
mode:
authorJukka Rissanen <jukka.rissanen@nokia.com>2010-12-31 11:57:12 +0200
committerMarcel Holtmann <marcel@holtmann.org>2010-12-31 10:11:17 -0800
commit1a86acbaea8f970793f101a44a96d846d68cbcaf (patch)
treef1d9a447a5304900b165a0fff4b585beda236b8b /src/connection.c
parentf8dd792fc5aa56392b594ce075df1789fcb5a3d0 (diff)
downloadconnman-1a86acbaea8f970793f101a44a96d846d68cbcaf.tar.gz
connman-1a86acbaea8f970793f101a44a96d846d68cbcaf.tar.bz2
connman-1a86acbaea8f970793f101a44a96d846d68cbcaf.zip
memoryleak: remove the element for real
Diffstat (limited to 'src/connection.c')
-rw-r--r--src/connection.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/connection.c b/src/connection.c
index cb0ca223..bfd19b53 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 = {