commit | 240fcdb00692fd5d651e4c686f598247ca8e00b8 | [log] [tgz] |
---|---|---|
author | Bruna Moreira <bruna.moreira@openbossa.org> | Thu Feb 03 14:43:48 2011 -0400 |
committer | Johan Hedberg <johan.hedberg@nokia.com> | Fri Feb 04 06:55:02 2011 +0200 |
tree | d9fd1d8640c4e9095144b6c44c779bcb498b20fc | |
parent | 05133a40fd1a27c94a186b27b6abb83b65419af6 [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)