summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/simutil.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/simutil.c b/src/simutil.c
index 3dc47616..ac9dd2f8 100644
--- 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);