linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH BlueZ v2 1/5] client: Add missing duplicated string free
@ 2018-05-16 13:52 Grzegorz Kolodziejczyk
  2018-05-16 13:52 ` [PATCH BlueZ v2 2/5] client: Define maximum attribute value length as initial value Grzegorz Kolodziejczyk
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Grzegorz Kolodziejczyk @ 2018-05-16 13:52 UTC (permalink / raw)
  To: linux-bluetooth

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


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2018-05-22  7:59 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-05-16 13:52 [PATCH BlueZ v2 1/5] client: Add missing duplicated string free Grzegorz Kolodziejczyk
2018-05-16 13:52 ` [PATCH BlueZ v2 2/5] client: Define maximum attribute value length as initial value Grzegorz Kolodziejczyk
2018-05-16 13:52 ` [PATCH BlueZ v2 3/5] doc/gatt-api: Add authorization options for attributes Grzegorz Kolodziejczyk
2018-05-16 13:52 ` [PATCH BlueZ v2 4/5] shared/gatt-server: Request authorization for prepare writes Grzegorz Kolodziejczyk
2018-05-21  9:51   ` Luiz Augusto von Dentz
2018-05-21  9:58     ` Grzegorz Kołodziejczyk
2018-05-16 13:52 ` [PATCH BlueZ v2 5/5] client: Add authorized property handling to characteristic attribute Grzegorz Kolodziejczyk
2018-05-21  9:58   ` Luiz Augusto von Dentz
2018-05-22  7:59     ` Grzegorz Kołodziejczyk
2018-05-21  8:38 ` [PATCH BlueZ v2 1/5] client: Add missing duplicated string free Luiz Augusto von Dentz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).