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:
43e5152
)
Fix: Do not leak chat memory
author
Denis Kenzior
<denkenz@gmail.com>
Wed, 14 Oct 2009 22:00:20 +0000
(17:00 -0500)
committer
Denis Kenzior
<denkenz@gmail.com>
Thu, 15 Oct 2009 21:15:18 +0000
(16:15 -0500)
plugins/phonesim.c
patch
|
blob
|
history
diff --git
a/plugins/phonesim.c
b/plugins/phonesim.c
index
e6d1d9b
..
f1c44e5
100644
(file)
--- a/
plugins/phonesim.c
+++ b/
plugins/phonesim.c
@@
-136,7
+136,6
@@
static void mux_setup(GAtMux *mux, gpointer user_data)
return;
}
- data->chat = NULL;
data->mux = mux;
if (getenv("OFONO_AT_DEBUG"))
@@
-238,9
+237,11
@@
static int phonesim_enable(struct ofono_modem *modem)
}
- if (data->use_mux)
+ if (data->use_mux)
{
g_at_mux_setup_gsm0710(data->chat, mux_setup, modem, NULL);
- else
+ g_at_chat_unref(data->chat);
+ data->chat = NULL;
+ } else
g_at_chat_send(data->chat, "AT+CFUN=1", NULL,
cfun_set_on_cb, modem, NULL);