Fix: Free modem name in ofono_modem_remove

Avoid the memory leak of modem name.
This commit is contained in:
Zhenhua Zhang 2010-07-21 14:41:14 +08:00 committed by Denis Kenzior
parent a3b694672d
commit bdef5046d0
1 changed files with 1 additions and 0 deletions

View File

@ -1480,6 +1480,7 @@ void ofono_modem_remove(struct ofono_modem *modem)
if (modem->driver_type)
g_free(modem->driver_type);
g_free(modem->name);
g_free(modem->path);
g_free(modem);
}