mirror of git://git.sysmocom.de/ofono
sim: Don't submit parallel EFpl reads
In addition to not doing unnecessary SIM I/O, this fixes memory leaks like this one: ==10096== 74 (56 direct, 18 indirect) bytes in 2 blocks are definitely lost in loss record 1,252 of 1,342 ==10096== at 0x4841BF0: calloc (vg_replace_malloc.c) ==10096== by 0x4B03117: g_malloc0 (gmem.c) ==10096== by 0xF83DF: concat_lang_prefs (sim.c) ==10096== by 0xF8697: sim_efpl_read_cb (sim.c) ==10096== by 0x12CBF7: sim_fs_op_read_block_cb (simfs.c)
This commit is contained in:
parent
5c0ec25353
commit
72758ef34b
|
@ -2200,6 +2200,9 @@ static void sim_efli_efpl_changed(int id, void *userdata)
|
||||||
if (sim->efli != NULL) /* This shouldn't happen */
|
if (sim->efli != NULL) /* This shouldn't happen */
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (sim->language_prefs_update)
|
||||||
|
return;
|
||||||
|
|
||||||
if (sim->language_prefs) {
|
if (sim->language_prefs) {
|
||||||
g_strfreev(sim->language_prefs);
|
g_strfreev(sim->language_prefs);
|
||||||
sim->language_prefs = NULL;
|
sim->language_prefs = NULL;
|
||||||
|
|
Loading…
Reference in New Issue