mirror of git://git.sysmocom.de/ofono
Add check for error path
This commit is contained in:
parent
44bed555a5
commit
6093b9b438
|
@ -666,6 +666,9 @@ void at_network_registration_exit(struct ofono_modem *modem)
|
|||
{
|
||||
struct at_data *at = ofono_modem_userdata(modem);
|
||||
|
||||
if (!at->netreg)
|
||||
return;
|
||||
|
||||
g_free(at->netreg);
|
||||
at->netreg = NULL;
|
||||
|
||||
|
|
Loading…
Reference in New Issue