mirror of git://git.sysmocom.de/ofono
hso: Don't access freed data, in hso_set_online
This commit is contained in:
parent
8b3c9e38a5
commit
fb43a32743
|
@ -421,9 +421,9 @@ static void hso_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 hso_pre_sim(struct ofono_modem *modem)
|
||||
|
|
Loading…
Reference in New Issue