From c474824aa998587474f8f85ad6d57762faab561d Mon Sep 17 00:00:00 2001 From: Andrey Volk Date: Fri, 12 Jul 2019 20:02:26 +0400 Subject: [PATCH] FS-11903: Fix errors reported by PVS-Studio Static Code Analyzer for mod_rtc --- src/mod/endpoints/mod_rtc/mod_rtc.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/mod/endpoints/mod_rtc/mod_rtc.c b/src/mod/endpoints/mod_rtc/mod_rtc.c index bda5f33f3e..88fac00482 100644 --- a/src/mod/endpoints/mod_rtc/mod_rtc.c +++ b/src/mod/endpoints/mod_rtc/mod_rtc.c @@ -404,11 +404,6 @@ static switch_call_cause_t rtc_outgoing_channel(switch_core_session_t *session, goto done; error: - - if (nsession) { - switch_core_session_destroy(&nsession); - } - if (pool) { *pool = NULL; }