projects
/
platform
/
upstream
/
ofono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a371f46
)
ste: Fix out-of-order free
author
Denis Kenzior
<denkenz@gmail.com>
Wed, 13 May 2015 20:55:00 +0000
(15:55 -0500)
committer
Denis Kenzior
<denkenz@gmail.com>
Wed, 13 May 2015 20:55:00 +0000
(15:55 -0500)
CALLBACK_WITH_FAILURE used data structure freed just beforehand
plugins/ste.c
patch
|
blob
|
history
diff --git
a/plugins/ste.c
b/plugins/ste.c
index 900e20ddb5cbf35a56c046f7a1e31c3c2474d5bc..20f4526178944a4a4faf3428f61e6e3d197c818f 100644
(file)
--- 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)