]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[core] MSRP: fix memleak (ssl)
authorDragos Oancea <dragos@signalwire.com>
Wed, 7 Jul 2021 12:47:33 +0000 (12:47 +0000)
committerAndrey Volk <andywolk@gmail.com>
Sat, 23 Oct 2021 19:00:50 +0000 (22:00 +0300)
src/switch_msrp.c

index 6a7594587465cd1f2a09dfe17a8d21ebbf8bdd1b..b76a043261959c57c13f8d6c219acc23c2aefbd8 100644 (file)
@@ -1413,7 +1413,7 @@ end:
 
        if (!client_mode) switch_core_destroy_memory_pool(&pool);
 
-       if (client_mode && ssl) SSL_free(ssl);
+       if (ssl) SSL_free(ssl);
 
        if (msrp_session) msrp_session->running = 0;