From: Denis Kenzior Date: Wed, 13 May 2015 20:55:00 +0000 (-0500) Subject: ste: Fix out-of-order free X-Git-Tag: upstream/1.17~36 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=23c45abd57f539ad1c64bc8bc17b6fd9c1c535d0;p=platform%2Fupstream%2Fofono.git ste: Fix out-of-order free CALLBACK_WITH_FAILURE used data structure freed just beforehand --- diff --git a/plugins/ste.c b/plugins/ste.c index 900e20dd..20f45261 100644 --- a/plugins/ste.c +++ b/plugins/ste.c @@ -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)) return; - g_free(cbd); - CALLBACK_WITH_FAILURE(cb, cbd->data); + g_free(cbd); } static void ste_pre_sim(struct ofono_modem *modem)