OSDN Git Service
(root)
/
android-x86
/
external-bluetooth-bluez.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22894ef
)
attrib: Fix memory leak
author
Andrei Emeltchenko
<andrei.emeltchenko@intel.com>
Tue, 29 Jul 2014 14:21:01 +0000
(17:21 +0300)
committer
Johan Hedberg
<johan.hedberg@intel.com>
Fri, 1 Aug 2014 10:39:50 +0000
(13:39 +0300)
attrib/gatttool.c
patch
|
blob
|
history
diff --git
a/attrib/gatttool.c
b/attrib/gatttool.c
index
bca7f69
..
db5da62
100644
(file)
--- a/
attrib/gatttool.c
+++ b/
attrib/gatttool.c
@@
-340,6
+340,7
@@
static gboolean characteristics_write(gpointer user_data)
gatt_write_cmd(attrib, opt_handle, value, len, mainloop_quit, value);
+ g_free(value);
return FALSE;
error:
@@
-393,6
+394,7
@@
static gboolean characteristics_write_req(gpointer user_data)
gatt_write_char(attrib, opt_handle, value, len, char_write_req_cb,
NULL);
+ g_free(value);
return FALSE;
error: