Return-Path: From: Jakub Tyszkowski To: linux-bluetooth@vger.kernel.org Cc: Jakub Tyszkowski Subject: [PATCHv2] gatt: Fix not freeing GError on failure Date: Thu, 22 May 2014 13:01:56 +0200 Message-Id: <1400756516-19877-1-git-send-email-jakub.tyszkowski@tieto.com> In-Reply-To: <20140521145431.GA30054@t440s> References: <20140521145431.GA30054@t440s> Sender: linux-bluetooth-owner@vger.kernel.org List-ID: --- profiles/gatt/gas.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/profiles/gatt/gas.c b/profiles/gatt/gas.c index d240450..b51b4a8 100644 --- a/profiles/gatt/gas.c +++ b/profiles/gatt/gas.c @@ -329,6 +329,11 @@ static void attio_connected_cb(GAttrib *attrib, gpointer user_data) DBG("MTU Exchange: Requesting %d", imtu); } + if (gerr) { + error("Could not acquire att imtu and cid: %s", gerr->message); + g_error_free(gerr); + } + if (device_get_appearance(gas->device, &app) < 0) { bt_uuid_t uuid; -- 1.9.3