Thread (5 messages) flat view 5 messages, 2 authors, 2012-12-01
STALE5017d

[PATCH 1/4] gas: Fix memory leak at gas struct removal

From: Paulo Borges <hidden>
Date: 2012-11-30 18:31:30
Subsystem: the rest · Maintainer: Linus Torvalds

---
 profiles/gatt/gas.c |    1 +
 1 file changed, 1 insertion(+)
diff --git a/profiles/gatt/gas.c b/profiles/gatt/gas.c
index 0e82097..e6cddad 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);
 }
-- 
1.7.9.5
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help