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:
91bdf99
)
simutil: Fix a memory leak
author
Denis Kenzior
<denkenz@gmail.com>
Thu, 20 Jan 2011 17:09:38 +0000
(11:09 -0600)
committer
Denis Kenzior
<denkenz@gmail.com>
Thu, 20 Jan 2011 17:16:04 +0000
(11:16 -0600)
src/simutil.c
patch
|
blob
|
history
diff --git
a/src/simutil.c
b/src/simutil.c
index
3dc4761
..
ac9dd2f
100644
(file)
--- a/
src/simutil.c
+++ b/
src/simutil.c
@@
-1513,8
+1513,10
@@
GSList *sim_parse_app_template_entries(const unsigned char *buffer, int len)
error:
while (ret) {
GSList *t = ret;
+ struct sim_app_record *app = ret->data;
- g_free(((struct sim_app_record *) ret->data)->label);
+ g_free(app->label);
+ g_free(app);
ret = ret->next;
g_slist_free_1(t);