diff options
author | Grzegorz Kolodziejczyk <grzegorz.kolodziejczyk@codecoup.pl> | 2018-05-16 15:52:26 +0200 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2018-05-21 11:09:29 +0300 |
commit | 48dd3a49fbaad6740180475f431e15d7f6e4ba5b (patch) | |
tree | 7881b84a89ba4714c1ef51b5ce43ce656846fed8 /client/gatt.c | |
parent | 5852a75d797059080770af12d3b7ba7b68897268 (diff) | |
download | bluez-48dd3a49fbaad6740180475f431e15d7f6e4ba5b.tar.gz |
client: Add missing duplicated string free
This patch free duplicated strings in read, write attribute callbacks.
Diffstat (limited to 'client/gatt.c')
-rw-r--r-- | client/gatt.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); |