From 993b97dd94ed1c9a5ff319e04c859602b27ec073 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Grisez?= Date: Tue, 29 Mar 2016 11:12:16 +0200 Subject: [PATCH] Fixes memory leak in LinphoneCall The onhold_file attribute was not freed in the LinphoneCall destructor --- coreapi/linphonecall.c | 1 + 1 file changed, 1 insertion(+) diff --git a/coreapi/linphonecall.c b/coreapi/linphonecall.c index 5e5e78bcd..71a3ccb81 100644 --- a/coreapi/linphonecall.c +++ b/coreapi/linphonecall.c @@ -1715,6 +1715,7 @@ static void linphone_call_destroy(LinphoneCall *obj){ linphone_address_unref(obj->me); obj->me = NULL; } + if (obj->onhold_file) ms_free(obj->onhold_file); sal_error_info_reset(&obj->non_op_error); }