diff options
author | Alex J Lennon <ajlennon@dynamicdevices.co.uk> | 2015-05-13 17:08:47 +0100 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2015-05-13 15:56:34 -0500 |
commit | f8d9485dc28f976ed5665cbe75ef4a55d5f84ee1 (patch) | |
tree | 712b443c25bab2a497d832e0cda957ef13c201b4 /plugins | |
parent | 23c45abd57f539ad1c64bc8bc17b6fd9c1c535d0 (diff) | |
download | ofono-f8d9485dc28f976ed5665cbe75ef4a55d5f84ee1.tar.bz2 |
cinterion: Correct use of freed structure
On error struct cb_data *cbd was used after in cinterion_set_online
after already being freed.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/cinterion.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/cinterion.c b/plugins/cinterion.c index 6d851892..a18b9fe8 100644 --- a/plugins/cinterion.c +++ b/plugins/cinterion.c @@ -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) |