diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2014-03-20 11:00:30 +0200 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2014-03-20 11:00:30 +0200 |
commit | 62fa7208915c1a5761d58c1eca28ed55cb4e13f5 (patch) | |
tree | b7e978913aafd80034cf69fd1c062e6ea1728b7c /attrib | |
parent | 8203def2864764c14da1a98d0fe0714b931485e8 (diff) | |
download | bluez-62fa7208915c1a5761d58c1eca28ed55cb4e13f5.tar.gz |
attrib: Fix gatt_primary leaks when a failure occurs
Diffstat (limited to 'attrib')
-rw-r--r-- | attrib/gatt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/attrib/gatt.c b/attrib/gatt.c index 1816234c2..1db34be7b 100644 --- a/attrib/gatt.c +++ b/attrib/gatt.c @@ -81,7 +81,7 @@ static void discover_primary_unref(void *data) if (dp->ref > 0) return; - g_slist_free(dp->primaries); + g_slist_free_full(dp->primaries, g_free); g_attrib_unref(dp->attrib); g_free(dp); } |