mirror of git://git.sysmocom.de/ofono
Fix memory leak
This commit is contained in:
parent
ac4c183a01
commit
0c1f8003af
|
@ -83,6 +83,7 @@ static void phonesim_remove(struct ofono_modem *modem)
|
|||
|
||||
DBG("%p", modem);
|
||||
|
||||
g_free(data);
|
||||
ofono_modem_set_data(modem, NULL);
|
||||
|
||||
g_free(data);
|
||||
|
@ -204,8 +205,6 @@ static int phonesim_disable(struct ofono_modem *modem)
|
|||
|
||||
DBG("%p", modem);
|
||||
|
||||
ofono_modem_set_data(modem, NULL);
|
||||
|
||||
g_at_chat_shutdown(data->chat);
|
||||
|
||||
g_at_chat_unref(data->chat);
|
||||
|
|
Loading…
Reference in New Issue