hso: Don't access freed data, in hso_set_online

This commit is contained in:
Neil Jerram 2012-02-27 20:04:43 +00:00 committed by Marcel Holtmann
parent 8b3c9e38a5
commit fb43a32743
1 changed files with 2 additions and 2 deletions

View File

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