From 04a1fc903bdb42d1afaed9b70fa430139c654998 Mon Sep 17 00:00:00 2001 From: Andrei Emeltchenko Date: Wed, 13 Nov 2013 16:29:33 +0200 Subject: [PATCH] android/hidhost: Fix memory leak --- android/hidhost.c | 1 + 1 file changed, 1 insertion(+) diff --git a/android/hidhost.c b/android/hidhost.c index f5a1b14ef..abb3e465b 100644 --- a/android/hidhost.c +++ b/android/hidhost.c @@ -1137,6 +1137,7 @@ static void connect_cb(GIOChannel *chan, GError *err, gpointer user_data) if (err) { error("%s", gerr->message); g_io_channel_shutdown(chan, TRUE, NULL); + g_error_free(gerr); return; } -- 2.47.3