From 0ec37e55b26207ae35b2c72c0fbbf662344aa99d Mon Sep 17 00:00:00 2001 From: Beniamino Galvani Date: Tue, 6 Aug 2019 08:34:44 +0200 Subject: [PATCH] modem: fix memory leak Fixes: 9b935fad9b10 ('modem: don't use GAsyncResult pattern for disconnecting modem') (cherry picked from commit 22cd9e754bc7fa233792eb988e5353a1b559b5c4) (cherry picked from commit 47c772354e8283d02f5ab0da4888513b2d65ad6c) (cherry picked from commit 05319cb391d515debffd8e492230573ab099631d) --- src/devices/wwan/nm-modem-broadband.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/devices/wwan/nm-modem-broadband.c b/src/devices/wwan/nm-modem-broadband.c index 1cb549b017..b9f5f236be 100644 --- a/src/devices/wwan/nm-modem-broadband.c +++ b/src/devices/wwan/nm-modem-broadband.c @@ -1127,7 +1127,7 @@ simple_disconnect_ready (GObject *source_object, { MMModemSimple *modem_iface = MM_MODEM_SIMPLE (source_object); DisconnectContext *ctx = user_data; - GError *error = NULL; + gs_free_error GError *error = NULL; if (!mm_modem_simple_disconnect_finish (modem_iface, res, &error)) { if ( ctx->warn