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:
fe848f6
)
Fix: memory leak
author
Denis Kenzior
<denkenz@gmail.com>
Wed, 10 Feb 2010 19:12:25 +0000
(13:12 -0600)
committer
Denis Kenzior
<denkenz@gmail.com>
Wed, 10 Feb 2010 22:41:31 +0000
(16:41 -0600)
drivers/atmodem/cbs.c
patch
|
blob
|
history
diff --git
a/drivers/atmodem/cbs.c
b/drivers/atmodem/cbs.c
index
0a5e99a
..
eb46d30
100644
(file)
--- a/
drivers/atmodem/cbs.c
+++ b/
drivers/atmodem/cbs.c
@@
-236,6
+236,11
@@
static int at_cbs_probe(struct ofono_cbs *cbs, unsigned int vendor,
static void at_cbs_remove(struct ofono_cbs *cbs)
{
+ struct cbs_data *data = ofono_cbs_get_data(cbs);
+
+ ofono_cbs_set_data(cbs, NULL);
+
+ g_free(data);
}
static struct ofono_cbs_driver driver = {