Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCH BlueZ 1/7] audio: Fix not freeing gateway agent data on exit
@ 2012-10-01 11:37 Luiz Augusto von Dentz
  2012-10-01 11:37 ` [PATCH BlueZ 2/7] AVRCP: Fix not freeing player session list " Luiz Augusto von Dentz
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: Luiz Augusto von Dentz @ 2012-10-01 11:37 UTC (permalink / raw)
  To: linux-bluetooth

From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

434 (168 direct, 266 indirect) bytes in 7 blocks are definitely lost in loss record 322 of 338
   at 0x4A06F18: calloc (vg_replace_malloc.c:566)
   by 0x4C802C6: g_malloc0 (in /usr/lib64/libglib-2.0.so.0.3200.4)
   by 0x126C0C: register_agent (gateway.c:673)
   by 0x122960: process_message.isra.0 (object.c:197)
   by 0x4F70684: ??? (in /usr/lib64/libdbus-1.so.3.5.6)
   by 0x4F6290C: dbus_connection_dispatch (in /usr/lib64/libdbus-1.so.3.5.6)
   by 0x120FA7: message_dispatch (mainloop.c:76)
   by 0x4C7B22A: ??? (in /usr/lib64/libglib-2.0.so.0.3200.4)
   by 0x4C7A694: g_main_context_dispatch (in /usr/lib64/libglib-2.0.so.0.3200.4)
   by 0x4C7A9C7: ??? (in /usr/lib64/libglib-2.0.so.0.3200.4)
   by 0x4C7ADC1: g_main_loop_run (in /usr/lib64/libglib-2.0.so.0.3200.4)
   by 0x120671: main (main.c:551)
---
 audio/gateway.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/audio/gateway.c b/audio/gateway.c
index 45b25a1..3e606c9 100644
--- a/audio/gateway.c
+++ b/audio/gateway.c
@@ -741,6 +741,9 @@ static void path_unregister(void *data)
 
 	gateway_close(dev);
 
+	if (dev->gateway->agent)
+		agent_free(dev->gateway->agent);
+
 	g_free(dev->gateway);
 	dev->gateway = NULL;
 }
-- 
1.7.11.4


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2012-10-01 13:47 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-01 11:37 [PATCH BlueZ 1/7] audio: Fix not freeing gateway agent data on exit Luiz Augusto von Dentz
2012-10-01 11:37 ` [PATCH BlueZ 2/7] AVRCP: Fix not freeing player session list " Luiz Augusto von Dentz
2012-10-01 11:37 ` [PATCH BlueZ 3/7] AVRCP: Fix not removing session from player upon disconnect Luiz Augusto von Dentz
2012-10-01 11:37 ` [PATCH BlueZ 4/7] AVCTP: Simplify channel handling Luiz Augusto von Dentz
2012-10-01 11:37 ` [PATCH BlueZ 5/7] AVCTP: Allocate memory to hold incoming/outgoing PDUs Luiz Augusto von Dentz
2012-10-01 11:37 ` [PATCH BlueZ 6/7] AVRCP: Register to AVCTP state changes without depending on player Luiz Augusto von Dentz
2012-10-01 11:37 ` [PATCH BlueZ 7/7] AVRCP: Don't respond with errors when no player is registered Luiz Augusto von Dentz
2012-10-01 12:31 ` [PATCH BlueZ 1/7] audio: Fix not freeing gateway agent data on exit Mikel Astiz
2012-10-01 13:47 ` Johan Hedberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox