From fb43a3274380a464dcceecba1d9d258f2bb21012 Mon Sep 17 00:00:00 2001 From: Neil Jerram Date: Mon, 27 Feb 2012 20:04:43 +0000 Subject: [PATCH] hso: Don't access freed data, in hso_set_online --- plugins/hso.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/hso.c b/plugins/hso.c index 497c64e7..249bb2ca 100644 --- a/plugins/hso.c +++ b/plugins/hso.c @@ -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)