summaryrefslogtreecommitdiffstats
path: root/plugins/ste.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/ste.c')
-rw-r--r--plugins/ste.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/ste.c b/plugins/ste.c
index 900e20dd..20f45261 100644
--- a/plugins/ste.c
+++ b/plugins/ste.c
@@ -423,9 +423,8 @@ static void ste_set_online(struct ofono_modem *modem, ofono_bool_t online,
if (g_at_chat_send(chat, command, NULL, set_online_cb, cbd, g_free))
return;
- g_free(cbd);
-
CALLBACK_WITH_FAILURE(cb, cbd->data);
+ g_free(cbd);
}
static void ste_pre_sim(struct ofono_modem *modem)