* [PATCH] Fix memory leak of gattrib commands queue
@ 2010-12-15 20:00 Claudio Takahasi
2010-12-16 9:25 ` Johan Hedberg
0 siblings, 1 reply; 2+ messages in thread
From: Claudio Takahasi @ 2010-12-15 20:00 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Claudio Takahasi
---
attrib/gattrib.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/attrib/gattrib.c b/attrib/gattrib.c
index 4ed29d9..eace01b 100644
--- a/attrib/gattrib.c
+++ b/attrib/gattrib.c
@@ -177,6 +177,7 @@ void g_attrib_unref(GAttrib *attrib)
while ((c = g_queue_pop_head(attrib->queue)))
command_destroy(c);
+ g_queue_free(attrib->queue);
attrib->queue = NULL;
for (l = attrib->events; l; l = l->next)
--
1.7.3.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Fix memory leak of gattrib commands queue
2010-12-15 20:00 [PATCH] Fix memory leak of gattrib commands queue Claudio Takahasi
@ 2010-12-16 9:25 ` Johan Hedberg
0 siblings, 0 replies; 2+ messages in thread
From: Johan Hedberg @ 2010-12-16 9:25 UTC (permalink / raw)
To: Claudio Takahasi; +Cc: linux-bluetooth
Hi Claudio,
On Wed, Dec 15, 2010, Claudio Takahasi wrote:
> ---
> attrib/gattrib.c | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/attrib/gattrib.c b/attrib/gattrib.c
> index 4ed29d9..eace01b 100644
> --- a/attrib/gattrib.c
> +++ b/attrib/gattrib.c
> @@ -177,6 +177,7 @@ void g_attrib_unref(GAttrib *attrib)
> while ((c = g_queue_pop_head(attrib->queue)))
> command_destroy(c);
>
> + g_queue_free(attrib->queue);
> attrib->queue = NULL;
>
> for (l = attrib->events; l; l = l->next)
Pushed upstream. Thanks.
Johan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-12-16 9:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-15 20:00 [PATCH] Fix memory leak of gattrib commands queue Claudio Takahasi
2010-12-16 9:25 ` Johan Hedberg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox