From 977ada52333e16641f8272a6d5233cb0104cd00a Mon Sep 17 00:00:00 2001 From: Paulo Borges Date: Fri, 30 Nov 2012 15:31:30 -0300 Subject: [PATCH] gas: Fix memory leak at gas struct removal --- profiles/gatt/gas.c | 1 + 1 file changed, 1 insertion(+) diff --git a/profiles/gatt/gas.c b/profiles/gatt/gas.c index 0e8209791..e6cddad85 100644 --- a/profiles/gatt/gas.c +++ b/profiles/gatt/gas.c @@ -64,6 +64,7 @@ static void gas_free(struct gas *gas) if (gas->attioid) btd_device_remove_attio_callback(gas->device, gas->attioid); + g_attrib_unref(gas->attrib); btd_device_unref(gas->device); g_free(gas); } -- 2.47.3