ste: Fix out-of-order free

CALLBACK_WITH_FAILURE used data structure freed just beforehand
This commit is contained in:
Denis Kenzior 2015-05-13 15:55:00 -05:00
parent a371f46735
commit 23c45abd57
1 changed files with 1 additions and 2 deletions

View File

@ -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)