Diff between a7579647d7ba58b7199d5551dbca96e1af3c6fe7 and 04a1fc903bdb42d1afaed9b70fa430139c654998

Changed Files

File Additions Deletions Status
android/hidhost.c +1 -0 modified

Full Patch

diff --git a/android/hidhost.c b/android/hidhost.c
index f5a1b14..abb3e46 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;
 	}