Add check for error path

This commit is contained in:
Denis Kenzior 2009-06-02 14:39:27 -05:00
parent 44bed555a5
commit 6093b9b438
1 changed files with 3 additions and 0 deletions

View File

@ -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;