diff options
Diffstat (limited to 'src/simfs.c')
-rw-r--r-- | src/simfs.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/simfs.c b/src/simfs.c index af0508ca..3a97a10c 100644 --- a/src/simfs.c +++ b/src/simfs.c @@ -107,8 +107,15 @@ void sim_fs_free(struct sim_fs *fs) g_queue_free(fs->op_q); } - if (fs->contexts != NULL) - ofono_error("Freeing simfs, but contexs is not NULL"); + if (fs->contexts != NULL) { + GSList *l; + + for (l = fs->contexts; l; l = l->next) { + struct ofono_sim_context *context = l->data; + + sim_fs_context_free(context); + } + } g_free(fs); } |