summaryrefslogtreecommitdiff
path: root/attrib
diff options
context:
space:
mode:
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>2014-07-29 17:21:01 +0300
committerJohan Hedberg <johan.hedberg@intel.com>2014-08-01 13:39:50 +0300
commit56d9d175e34263efc3091eb01fd51351d8d4a2c2 (patch)
treec6755ca7ac398ea40d80f3cc87a0c4b7ec5aaa47 /attrib
parent22894ef078c1c29c65ae68bcfe0b6c588f31c0fd (diff)
downloadbluez-56d9d175e34263efc3091eb01fd51351d8d4a2c2.tar.gz
attrib: Fix memory leak
Diffstat (limited to 'attrib')
-rw-r--r--attrib/gatttool.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/attrib/gatttool.c b/attrib/gatttool.c
index bca7f698b..db5da6220 100644
--- 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: