From cd80166367c73d3645524c0dfe6247e0f01718db Mon Sep 17 00:00:00 2001 From: Syam Sidhardhan Date: Wed, 9 Nov 2011 11:29:40 +0530 Subject: [PATCH] obexd: Fix dbus memory leak --- obexd/plugins/usb.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/obexd/plugins/usb.c b/obexd/plugins/usb.c index a0ec21b54..12fb30c97 100644 --- a/obexd/plugins/usb.c +++ b/obexd/plugins/usb.c @@ -242,11 +242,13 @@ static void *usb_start(struct obex_server *server, int *err) if (dbus_connection_send_with_reply(connection, msg, &call, -1) == FALSE) { error("usb: unable to send mode_request"); + dbus_message_unref(msg); goto fail; } dbus_pending_call_set_notify(call, mode_request_reply, server, NULL); dbus_pending_call_unref(call); + dbus_message_unref(msg); id = g_dbus_add_signal_watch(connection, NULL, NULL, "com.meego.usb_moded", -- 2.47.3