Return-Path: MIME-Version: 1.0 In-Reply-To: <1316609392-28914-1-git-send-email-dmitriy.paliy@nokia.com> References: <1316609392-28914-1-git-send-email-dmitriy.paliy@nokia.com> Date: Wed, 21 Sep 2011 16:09:34 +0300 Message-ID: Subject: Re: [PATCH] Fix freeing watches list in maemo6 telephony From: Luiz Augusto von Dentz To: Dmitriy Paliy Cc: linux-bluetooth@vger.kernel.org Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-bluetooth-owner@vger.kernel.org List-ID: Hi Dmitriy, On Wed, Sep 21, 2011 at 3:49 PM, Dmitriy Paliy wrote: > This fixes regression introduced in 83064481481d23523e5cdd04. > List watches has to be freed instead of list pending. > --- > ?audio/telephony-maemo6.c | ? ?2 +- > ?1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/audio/telephony-maemo6.c b/audio/telephony-maemo6.c > index a5845c4..42d693a 100644 > --- a/audio/telephony-maemo6.c > +++ b/audio/telephony-maemo6.c > @@ -2017,7 +2017,7 @@ void telephony_exit(void) > ? ? ? ?g_slist_free_full(pending, pending_req_finalize); > ? ? ? ?pending = NULL; > > - ? ? ? g_slist_free_full(pending, remove_watch); > + ? ? ? g_slist_free_full(watches, remove_watch); > ? ? ? ?watches = NULL; > > ? ? ? ?dbus_connection_unref(connection); > -- > 1.7.4.1 Nice catch, ack. -- Luiz Augusto von Dentz