From 35e77c1c5fd9a124477a9b820ef37b9ea9244a63 Mon Sep 17 00:00:00 2001 From: Jakub Tyszkowski Date: Tue, 27 May 2014 12:15:30 +0200 Subject: [PATCH] gatt: Fix not freeing GError on failure --- profiles/gatt/gas.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/profiles/gatt/gas.c b/profiles/gatt/gas.c index d2404501c..b51b4a84e 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; -- 2.47.3