agent: Memory leak in error reply
authorJukka Rissanen <jukka.rissanen@linux.intel.com>
Fri, 4 May 2012 12:49:44 +0000 (15:49 +0300)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Fri, 4 May 2012 13:18:57 +0000 (16:18 +0300)
The pending call was not unreffed.

src/agent.c

index 33a11ec..feeb48e 100644 (file)
@@ -632,6 +632,7 @@ static void report_error_reply(DBusPendingCall *call, void *user_data)
        connman_service_unref(report_error->service);
        g_free(report_error);
        dbus_message_unref(reply);
+       dbus_pending_call_unref(call);
 }
 
 int __connman_agent_report_error(struct connman_service *service,