mirror of git://git.sysmocom.de/ofono
Fix: Free modem name in ofono_modem_remove
Avoid the memory leak of modem name.
This commit is contained in:
parent
a3b694672d
commit
bdef5046d0
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue