diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2012-10-11 11:47:53 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2012-10-11 11:47:53 +0200 |
commit | a850644cd8520aa0a515231d1a1bfc6fd0c8ffc1 (patch) | |
tree | 1e227e8683905c6380603d24d3c63af26b473bed /src/mm-iface-modem-simple.c | |
parent | c16bcdf68c0d1e2d027a5a44b7e3b4bf29d4aee3 (diff) |
iface-modem-simple: plug memleaks
Diffstat (limited to 'src/mm-iface-modem-simple.c')
-rw-r--r-- | src/mm-iface-modem-simple.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); |