summaryrefslogtreecommitdiff
path: root/src/agent.c
diff options
context:
space:
mode:
authorJukka Rissanen <jukka.rissanen@linux.intel.com>2012-05-04 15:49:44 +0300
committerPatrik Flykt <patrik.flykt@linux.intel.com>2012-05-04 16:18:57 +0300
commit65af499cc67950a3c40626f704025e4f371bc2b7 (patch)
tree2ee8ad1d18c76022b91520f161e5373eac5d02e1 /src/agent.c
parent2ec6983afee4f475ff8ab5bff70782b5979494f1 (diff)
downloadconnman-65af499cc67950a3c40626f704025e4f371bc2b7.tar.gz
connman-65af499cc67950a3c40626f704025e4f371bc2b7.tar.bz2
connman-65af499cc67950a3c40626f704025e4f371bc2b7.zip
agent: Memory leak in error reply
The pending call was not unreffed.
Diffstat (limited to 'src/agent.c')
-rw-r--r--src/agent.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/agent.c b/src/agent.c
index 33a11ecd..feeb48e9 100644
--- a/src/agent.c
+++ b/src/agent.c
@@ -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,