From 23c45abd57f539ad1c64bc8bc17b6fd9c1c535d0 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Wed, 13 May 2015 15:55:00 -0500 Subject: ste: Fix out-of-order free CALLBACK_WITH_FAILURE used data structure freed just beforehand --- plugins/ste.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'plugins') 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) -- cgit v1.2.3