mirror of git://git.sysmocom.de/ofono
ste: Fix out-of-order free
CALLBACK_WITH_FAILURE used data structure freed just beforehand
This commit is contained in:
parent
a371f46735
commit
23c45abd57
|
@ -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))
|
if (g_at_chat_send(chat, command, NULL, set_online_cb, cbd, g_free))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
g_free(cbd);
|
|
||||||
|
|
||||||
CALLBACK_WITH_FAILURE(cb, cbd->data);
|
CALLBACK_WITH_FAILURE(cb, cbd->data);
|
||||||
|
g_free(cbd);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void ste_pre_sim(struct ofono_modem *modem)
|
static void ste_pre_sim(struct ofono_modem *modem)
|
||||||
|
|
Loading…
Reference in New Issue