]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-11903: Fix errors reported by PVS-Studio Static Code Analyzer for mod_rtc
authorAndrey Volk <andywolk@gmail.com>
Fri, 12 Jul 2019 16:02:26 +0000 (20:02 +0400)
committerAndrey Volk <andywolk@gmail.com>
Mon, 15 Jul 2019 19:39:24 +0000 (23:39 +0400)
src/mod/endpoints/mod_rtc/mod_rtc.c

index bda5f33f3e4bb53bdabcf5235051d683c04b7fea..88fac0048240a454f9fb3da5a282e18278a105f5 100644 (file)
@@ -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;
        }