Linux bluetooth development
 help / color / mirror / Atom feed
From: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
To: linux-bluetooth@vger.kernel.org
Subject: [PATCH BlueZ 05/10] AVRCP: Fix not freeing player session list on exit
Date: Mon,  1 Oct 2012 20:53:36 +0300	[thread overview]
Message-ID: <1349114021-19067-5-git-send-email-luiz.dentz@gmail.com> (raw)
In-Reply-To: <1349114021-19067-1-git-send-email-luiz.dentz@gmail.com>

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

16 bytes in 1 blocks are definitely lost in loss record 111 of 359
   at 0x4A0884D: malloc (vg_replace_malloc.c:263)
   by 0x4C8026E: g_malloc (in /usr/lib64/libglib-2.0.so.0.3200.4)
   by 0x4C94671: g_slice_alloc (in /usr/lib64/libglib-2.0.so.0.3200.4)
   by 0x4C959B2: g_slist_append (in /usr/lib64/libglib-2.0.so.0.3200.4)
   by 0x130FCC: avrcp_register_player (avrcp.c:1584)
   by 0x13FA1F: register_player (media.c:1689)
   by 0x123100: 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 0x121747: 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)
---
 audio/avrcp.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/audio/avrcp.c b/audio/avrcp.c
index 376f4a1..49f1550 100644
--- a/audio/avrcp.c
+++ b/audio/avrcp.c
@@ -1472,6 +1472,7 @@ static void player_destroy(gpointer data)
 	if (player->destroy)
 		player->destroy(player->user_data);
 
+	g_slist_free(player->sessions);
 	g_free(player);
 }
 
-- 
1.7.11.4


  parent reply	other threads:[~2012-10-01 17:53 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-01 17:53 [PATCH BlueZ 01/10] gdbus: Fix not freeing list node by using g_slist_delete_link Luiz Augusto von Dentz
2012-10-01 17:53 ` [PATCH BlueZ 02/10] gdbus: Remove connection from g_dbus_remove_watch Luiz Augusto von Dentz
2012-10-02  4:23   ` Lucas De Marchi
2012-10-02  8:05     ` Luiz Augusto von Dentz
2012-10-02 10:49       ` Lucas De Marchi
2012-10-02 13:57         ` Luiz Augusto von Dentz
2012-10-04  8:42           ` Luiz Augusto von Dentz
2012-10-01 17:53 ` [PATCH BlueZ 03/10] Fix passing D-Bus connection to g_dbus_remove_watch Luiz Augusto von Dentz
2012-10-01 17:53 ` [PATCH BlueZ 04/10] audio: Fix not freeing gateway agent data on exit Luiz Augusto von Dentz
2012-10-01 17:53 ` Luiz Augusto von Dentz [this message]
2012-10-01 17:53 ` [PATCH BlueZ 06/10] AVRCP: Fix not removing session from player upon disconnect Luiz Augusto von Dentz
2012-10-01 17:53 ` [PATCH BlueZ 07/10] AVCTP: Simplify channel handling Luiz Augusto von Dentz
2012-10-01 17:53 ` [PATCH BlueZ 08/10] AVCTP: Allocate memory to hold incoming/outgoing PDUs Luiz Augusto von Dentz
2012-10-01 17:53 ` [PATCH BlueZ 09/10] AVRCP: Register to AVCTP state changes without depending on player Luiz Augusto von Dentz
2012-10-01 17:53 ` [PATCH BlueZ 10/10] AVRCP: Don't respond with errors when no player is registered Luiz Augusto von Dentz
2012-10-02  4:10 ` [PATCH BlueZ 01/10] gdbus: Fix not freeing list node by using g_slist_delete_link Lucas De Marchi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1349114021-19067-5-git-send-email-luiz.dentz@gmail.com \
    --to=luiz.dentz@gmail.com \
    --cc=linux-bluetooth@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox