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:
Alex J Lennon 2015-05-13 17:08:47 +01:00 committed by Denis Kenzior
parent 23c45abd57
commit f8d9485dc2
1 changed files with 2 additions and 2 deletions

View File

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