Avoid the memory leak of modem name.
---
src/modem.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/modem.c b/src/modem.c
index ccbbc27..79a5d58 100644
--- a/src/modem.c
+++ b/src/modem.c
@@ -1495,6 +1495,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);
}
--
1.7.0.4
_______________________________________________
ofono mailing list
[email protected]
http://lists.ofono.org/listinfo/ofono