diff options
author | Bruna Moreira <bruna.moreira@openbossa.org> | 2011-02-03 14:43:48 -0400 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2011-02-04 06:55:02 +0200 |
commit | 240fcdb00692fd5d651e4c686f598247ca8e00b8 (patch) | |
tree | d9fd1d8640c4e9095144b6c44c779bcb498b20fc /attrib | |
parent | 05133a40fd1a27c94a186b27b6abb83b65419af6 (diff) | |
download | bluez-240fcdb00692fd5d651e4c686f598247ca8e00b8.tar.gz |
Fix invalid read after list concatenation
g_slist_concat uses the items from second list directly so they should
not be freed.
Diffstat (limited to 'attrib')
-rw-r--r-- | attrib/gatt.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/attrib/gatt.c b/attrib/gatt.c index f3b513e3..20bb96f9 100644 --- a/attrib/gatt.c +++ b/attrib/gatt.c @@ -121,7 +121,6 @@ static void primary_by_uuid_cb(guint8 status, const guint8 *ipdu, dp->primaries = g_slist_concat(dp->primaries, ranges); last = g_slist_last(ranges); - g_slist_free(ranges); range = last->data; if (range->end == 0xffff) |