projects
/
platform
/
upstream
/
bluez.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a13549c
)
client: Add missing duplicated string free
88/204988/1
author
Grzegorz Kolodziejczyk
<grzegorz.kolodziejczyk@codecoup.pl>
Wed, 16 May 2018 13:52:26 +0000
(15:52 +0200)
committer
Amit Purwar
<amit.purwar@samsung.com>
Mon, 29 Apr 2019 04:05:41 +0000
(09:35 +0530)
This patch free duplicated strings in read, write attribute callbacks.
Change-Id: I07368a2fc03c66c125868490655a2e503aa816f2
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
client/gatt.c
patch
|
blob
|
history
diff --git
a/client/gatt.c
b/client/gatt.c
index
d59d1ba
..
c8267a7
100755
(executable)
--- 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);