From: Santiago Carot-Nemesio <sancane@gmail.com>
To: linux-bluetooth@vger.kernel.org
Cc: Santiago Carot-Nemesio <sancane@gmail.com>
Subject: [PATCH 4/4] gatt-example: Fix memory leak.
Date: Fri, 30 Dec 2011 12:45:09 +0100 [thread overview]
Message-ID: <1325245509-14359-4-git-send-email-sancane@gmail.com> (raw)
In-Reply-To: <1325245509-14359-3-git-send-email-sancane@gmail.com>
Remove the example-plugin data element from the list whenever an adapter
is removed.
---
plugins/gatt-example.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/plugins/gatt-example.c b/plugins/gatt-example.c
index 5af07ea..701c1d7 100644
--- a/plugins/gatt-example.c
+++ b/plugins/gatt-example.c
@@ -541,6 +541,7 @@ static void gatt_example_adapter_remove(struct btd_adapter *adapter)
return;
gadapter = l->data;
+ adapters = g_slist_remove(adapters, gadapter);
gatt_example_adapter_free(gadapter);
}
--
1.7.8.1
next prev parent reply other threads:[~2011-12-30 11:45 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-30 11:45 [PATCH 1/4] attrib-server: Move GAP attributes inside gatt_server struct Santiago Carot-Nemesio
2011-12-30 11:45 ` [PATCH 2/4] gatt-service: Delete attributes when service registration fails Santiago Carot-Nemesio
2011-12-30 11:45 ` [PATCH 3/4] gatt-service: Add missing user_data parameter for callbacks Santiago Carot-Nemesio
2011-12-30 11:45 ` Santiago Carot-Nemesio [this message]
2012-01-09 12:29 ` [PATCH 1/4] attrib-server: Move GAP attributes inside gatt_server struct Johan Hedberg
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=1325245509-14359-4-git-send-email-sancane@gmail.com \
--to=sancane@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;
as well as URLs for NNTP newsgroup(s).