summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/atmodem/voicecall.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/atmodem/voicecall.c b/drivers/atmodem/voicecall.c
index 6b2dc8ae..7e38ffea 100644
--- a/drivers/atmodem/voicecall.c
+++ b/drivers/atmodem/voicecall.c
@@ -1113,6 +1113,9 @@ void at_voicecall_exit(struct ofono_modem *modem)
{
struct at_data *at = ofono_modem_userdata(modem);
+ g_slist_foreach(at->voicecall->calls, (GFunc) g_free, NULL);
+ g_slist_free(at->voicecall->calls);
+
g_free(at->voicecall);
at->voicecall = NULL;