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); }