mirror of git://git.sysmocom.de/ofono
sim: Fix memory leaks introduced by sim pin caching
This commit is contained in:
parent
f36d6d05cc
commit
3152c59455
|
@ -526,6 +526,10 @@ static void pin_cache_remove(const char *iccid)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
cached_pins = g_slist_remove(cached_pins, pin_cached);
|
cached_pins = g_slist_remove(cached_pins, pin_cached);
|
||||||
|
|
||||||
|
g_free(pin_cached->pin);
|
||||||
|
g_free(pin_cached->id);
|
||||||
|
g_free(pin_cached);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void pin_cache_enter_cb(const struct ofono_error *error, void *data)
|
static void pin_cache_enter_cb(const struct ofono_error *error, void *data)
|
||||||
|
|
Loading…
Reference in New Issue