Diff between 0a3fef04421263e23cae9c10a3a1869ce90660d7 and cd80166367c73d3645524c0dfe6247e0f01718db

Changed Files

File Additions Deletions Status
obexd/plugins/usb.c +2 -0 modified

Full Patch

diff --git a/obexd/plugins/usb.c b/obexd/plugins/usb.c
index a0ec21b..12fb30c 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",