commit | ea7e6645ba534b796fb2f13e9a77666442e9c27c | [log] [tgz] |
---|---|---|
author | Bruna Moreira <bruna.moreira@openbossa.org> | Thu Feb 03 14:43:48 2011 -0400 |
committer | Jaikumar Ganesh <jaikumar@google.com> | Thu Mar 10 16:48:16 2011 -0800 |
tree | d9fd1d8640c4e9095144b6c44c779bcb498b20fc | |
parent | 4f2f8017d99fc64c76501720598dc1d109502b3d [diff] |
Fix invalid read after list concatenation g_slist_concat uses the items from second list directly so they should not be freed.
diff --git a/attrib/gatt.c b/attrib/gatt.c index f3b513e..20bb96f 100644 --- a/attrib/gatt.c +++ b/attrib/gatt.c
@@ -121,7 +121,6 @@ dp->primaries = g_slist_concat(dp->primaries, ranges); last = g_slist_last(ranges); - g_slist_free(ranges); range = last->data; if (range->end == 0xffff)