This patch free duplicated strings in read, write attribute callbacks. --- client/gatt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/gatt.c b/client/gatt.c index d59d1ba1e..c8267a75f 100644 --- a/client/gatt.c +++ b/client/gatt.c @@ -1598,6 +1598,7 @@ static DBusMessage *chrc_read_value(DBusConnection *conn, DBusMessage *msg, bt_shell_prompt_input("gatt", str, authorize_read_response, aad); + g_free(str); pending_message = dbus_message_ref(msg); @@ -1700,6 +1701,7 @@ static DBusMessage *chrc_write_value(DBusConnection *conn, DBusMessage *msg, bt_shell_prompt_input("gatt", str, authorize_write_response, aad); + g_free(str); pending_message = dbus_message_ref(msg); -- 2.13.6 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html