From a850644cd8520aa0a515231d1a1bfc6fd0c8ffc1 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Thu, 11 Oct 2012 11:47:53 +0200 Subject: iface-modem-simple: plug memleaks --- src/mm-iface-modem-simple.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/mm-iface-modem-simple.c b/src/mm-iface-modem-simple.c index a74c03c4..2f6a7b1c 100644 --- a/src/mm-iface-modem-simple.c +++ b/src/mm-iface-modem-simple.c @@ -293,6 +293,7 @@ set_allowed_modes_ready (MMBaseModem *self, if (g_error_matches (error, MM_CORE_ERROR, MM_CORE_ERROR_UNSUPPORTED)) { + g_error_free (error); /* If setting bands is unsupported, keep on without sleep */ ctx->step++; connection_step (ctx); @@ -330,6 +331,7 @@ set_bands_ready (MMBaseModem *self, if (g_error_matches (error, MM_CORE_ERROR, MM_CORE_ERROR_UNSUPPORTED)) { + g_error_free (error); /* If setting bands is unsupported, keep on without sleep */ ctx->step++; connection_step (ctx); -- cgit v1.2.3-70-g09d2