diff options
Diffstat (limited to 'drivers/atmodem')
-rw-r--r-- | drivers/atmodem/sim.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/atmodem/sim.c b/drivers/atmodem/sim.c index 67f14a53..92ae575f 100644 --- a/drivers/atmodem/sim.c +++ b/drivers/atmodem/sim.c @@ -731,6 +731,11 @@ static int at_sim_probe(struct ofono_sim *sim, unsigned int vendor, static void at_sim_remove(struct ofono_sim *sim) { + struct sim_data *sd = ofono_sim_get_data(sim); + + ofono_sim_set_data(sim, NULL); + + g_free(sd); } static struct ofono_sim_driver driver = { |