From cec37ef8f446ab4f7cb624aa7da52d2006e8ea4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guido=20G=C3=BCnther?= Date: Tue, 3 Mar 2020 09:38:39 +0100 Subject: [PATCH] monitor-sensor: Fix memory leak Use g_autoptr in place of the missing g_error_free(). --- src/monitor-sensor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/monitor-sensor.c b/src/monitor-sensor.c index c320931..4703565 100644 --- a/src/monitor-sensor.c +++ b/src/monitor-sensor.c @@ -129,7 +129,7 @@ appeared_cb (GDBusConnection *connection, const gchar *name_owner, gpointer user_data) { - GError *error = NULL; + g_autoptr(GError) error = NULL; GVariant *ret = NULL; g_print ("+++ iio-sensor-proxy appeared\n");