All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH BlueZ 1/5] client: Add missing duplicated string free
@ 2018-05-09 11:05 Grzegorz Kolodziejczyk
  2018-05-09 11:05 ` [PATCH BlueZ 2/5] client: Define maximum attribute value length as initial value Grzegorz Kolodziejczyk
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Grzegorz Kolodziejczyk @ 2018-05-09 11:05 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] 7+ messages in thread

end of thread, other threads:[~2018-05-16 13:08 UTC | newest]

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.