summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);