mirror of git://git.sysmocom.de/ofono
cinterion: Correct use of freed structure
On error struct cb_data *cbd was used after in cinterion_set_online after already being freed.
This commit is contained in:
parent
23c45abd57
commit
f8d9485dc2
|
@ -166,9 +166,9 @@ static void cinterion_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 cinterion_pre_sim(struct ofono_modem *modem)
|
||||
|
|
Loading…
Reference in New Issue