Diff between 68fc5cb2bd68a1b116fc9404887784114592704c and f937ca016763899cc4055c5c9de547df9bfe8c39
Changed Files
| File | Additions | Deletions | Status |
| obexd/client/map.c | +5 | -2 | modified |
Full Patch
diff --git a/obexd/client/map.c b/obexd/client/map.c
index 0ef5e0f..47afc31 100644
--- a/obexd/client/map.c
+++ b/obexd/client/map.c
@@ -1183,8 +1183,10 @@ static void message_listing_cb(struct obc_session *session,
}
reply = dbus_message_new_method_return(request->msg);
- if (reply == NULL)
- return;
+ if (reply == NULL) {
+ g_free(contents);
+ goto clean;
+ }
dbus_message_iter_init_append(reply, &iter);
dbus_message_iter_open_container(&iter, DBUS_TYPE_ARRAY,
@@ -1211,6 +1213,7 @@ static void message_listing_cb(struct obc_session *session,
done:
g_dbus_send_message(conn, reply);
+clean:
pending_request_free(request);
}