diff options
author | Denis Kenzior <denkenz@gmail.com> | 2016-11-15 13:39:44 -0600 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2016-11-15 13:39:44 -0600 |
commit | 872c1a82f177983f8ae4414e75343d1ef49d4fb7 (patch) | |
tree | 9261d93bb58f0379839050fde3304c133221c913 /src/lte.c | |
parent | af3c06077496145cbc842219e29d558cb2ae16a2 (diff) | |
download | ofono-872c1a82f177983f8ae4414e75343d1ef49d4fb7.tar.gz |
lte: Relax condition to g_free imsi
imsi malloc is not directly tied to l_settings being valid
Diffstat (limited to 'src/lte.c')
-rw-r--r-- | src/lte.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -230,11 +230,11 @@ static void lte_atom_remove(struct ofono_atom *atom) if (lte == NULL) return; + g_free(lte->imsi); + lte->imsi = NULL; + if (lte->settings) { storage_close(lte->imsi, SETTINGS_STORE, lte->settings, TRUE); - - g_free(lte->imsi); - lte->imsi = NULL; lte->settings = NULL; } |