Fix memory leak
authorDenis Kenzior <denkenz@gmail.com>
Sat, 13 Jun 2009 00:40:51 +0000 (19:40 -0500)
committerDenis Kenzior <denkenz@gmail.com>
Sat, 13 Jun 2009 00:40:51 +0000 (19:40 -0500)
drivers/atmodem/sms.c

index 976c097..9fb8a76 100644 (file)
@@ -820,5 +820,8 @@ void at_sms_exit(struct ofono_modem *modem)
        if (!at->sms)
                return;
 
+       sms_destroy(at->sms);
+       at->sms = NULL;
+
        ofono_sms_manager_unregister(modem);
 }