mirror of git://git.sysmocom.de/ofono
sierra: Fix memory leak
This commit is contained in:
parent
7852f25079
commit
0a6189c15e
|
@ -79,6 +79,9 @@ static void sierra_remove(struct ofono_modem *modem)
|
||||||
|
|
||||||
ofono_modem_set_data(modem, NULL);
|
ofono_modem_set_data(modem, NULL);
|
||||||
|
|
||||||
|
/* Cleanup after hot-unplug */
|
||||||
|
g_at_chat_unref(data->chat);
|
||||||
|
|
||||||
g_free(data);
|
g_free(data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue