]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-12041: [Core] Fix memory leak on msrp shutdown
authorAndrey Volk <andywolk@gmail.com>
Fri, 6 Sep 2019 23:10:20 +0000 (03:10 +0400)
committerAndrey Volk <andywolk@gmail.com>
Fri, 6 Sep 2019 23:10:20 +0000 (03:10 +0400)
src/switch_msrp.c

index 6cf2974d3ef903b9fab67f27a34e79a83e54944d..bc680d11cad2e46b1ac607851578713a00808e2e 100644 (file)
@@ -108,6 +108,10 @@ static void msrp_deinit_ssl()
                SSL_CTX_free(globals.ssl_ctx);
                globals.ssl_ctx = NULL;
        }
+       if (globals.ssl_client_ctx) {
+               SSL_CTX_free(globals.ssl_client_ctx);
+               globals.ssl_client_ctx = NULL;
+       }
 }
 
 static void msrp_init_ssl()