summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2009-07-21 12:10:41 +0200
committerMarcel Holtmann <marcel@holtmann.org>2009-07-21 12:10:41 +0200
commitf7fb380c664c938d5396cc9e1b36c3b4b55e72b2 (patch)
treecf5ad0ec36d69df73f9b9bf7f2a5a5d2f90b13d9
parent47eab9ed1e78e901e83507bafe946cf1fab3ab50 (diff)
downloadconnman-f7fb380c664c938d5396cc9e1b36c3b4b55e72b2.tar.gz
connman-f7fb380c664c938d5396cc9e1b36c3b4b55e72b2.tar.bz2
connman-f7fb380c664c938d5396cc9e1b36c3b4b55e72b2.zip
Fix D-Bus message reference leak when adding interface fails
-rw-r--r--plugins/supplicant.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/supplicant.c b/plugins/supplicant.c
index 50d08bd3..8a41c305 100644
--- a/plugins/supplicant.c
+++ b/plugins/supplicant.c
@@ -329,6 +329,8 @@ static void add_interface_reply(DBusPendingCall *call, void *user_data)
return;
failed:
+ dbus_message_unref(reply);
+
task_list = g_slist_remove(task_list, task);
connman_device_unref(task->device);