aboutsummaryrefslogtreecommitdiffstats
path: root/attrib
diff options
context:
space:
mode:
authorClaudio Takahasi <claudio.takahasi@openbossa.org>2010-09-20 13:35:05 -0300
committerAnderson Lizardo <anderson.lizardo@openbossa.org>2010-09-22 16:00:04 -0400
commita66ccf347bb1c319436c25e21fa17381c590aa3c (patch)
tree412d7995f02d75cb7b26e2f365388bf80bdb0f41 /attrib
parent90e1990f85aa64c9e52ed0f60a526cf7d90dccdc (diff)
downloadbluez-a66ccf347bb1c319436c25e21fa17381c590aa3c.tar.gz
bluez-a66ccf347bb1c319436c25e21fa17381c590aa3c.tar.xz
bluez-a66ccf347bb1c319436c25e21fa17381c590aa3c.zip
Fix memory leak of characteristic and primary service lists
Diffstat (limited to 'attrib')
-rw-r--r--attrib/client.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/attrib/client.c b/attrib/client.c
index d312b330..0e275e00 100644
--- a/attrib/client.c
+++ b/attrib/client.c
@@ -141,6 +141,7 @@ static void primary_free(void *user_data)
}
g_slist_foreach(prim->chars, (GFunc) characteristic_free, NULL);
+ g_slist_free(prim->chars);
g_free(prim->path);
g_free(prim);
}
@@ -150,6 +151,7 @@ static void gatt_service_free(void *user_data)
struct gatt_service *gatt = user_data;
g_slist_foreach(gatt->primary, (GFunc) primary_free, NULL);
+ g_slist_free(gatt->primary);
g_attrib_unref(gatt->attrib);
g_free(gatt->path);
g_free(gatt);