From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Thu, 16 Dec 2010 11:25:43 +0200 From: Johan Hedberg To: Claudio Takahasi Cc: linux-bluetooth@vger.kernel.org Subject: Re: [PATCH] Fix memory leak of gattrib commands queue Message-ID: <20101216092543.GC4322@jh-x301> References: <1292443209-31156-1-git-send-email-claudio.takahasi@openbossa.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <1292443209-31156-1-git-send-email-claudio.takahasi@openbossa.org> Sender: linux-bluetooth-owner@vger.kernel.org List-ID: 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