diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2012-08-09 09:31:57 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2012-08-09 09:33:23 +0200 |
commit | 1e687337c12655760c2f187b5278684e7776dac4 (patch) | |
tree | 112f94d52af94fefd9383322c45797af70097cd2 | |
parent | 1e286f80eae1d4cbdb7e92c52d68529f0662fa22 (diff) |
zte: plug memleak
The GError wasn't properly disposed.
Reported by: Ben Chan <benchan@google.com>
-rw-r--r-- | plugins/zte/mm-broadband-modem-zte.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/zte/mm-broadband-modem-zte.c b/plugins/zte/mm-broadband-modem-zte.c index 1d9e396e..13c6c7b5 100644 --- a/plugins/zte/mm-broadband-modem-zte.c +++ b/plugins/zte/mm-broadband-modem-zte.c @@ -96,9 +96,13 @@ cpms_try_ready (MMBaseModem *self, MM_MOBILE_EQUIPMENT_ERROR_SIM_BUSY)) { /* Retry in 2 seconds */ g_timeout_add_seconds (2, (GSourceFunc)cpms_timeout_cb, ctx); + g_error_free (error); return; } + if (error) + g_error_free (error); + /* Well, we're done */ g_simple_async_result_set_op_res_gboolean (ctx->result, TRUE); modem_after_sim_unlock_context_complete_and_free (ctx); |