From 70831a7140343cd4bf9ae76337458a0644dde103 Mon Sep 17 00:00:00 2001 From: Andrey Volk Date: Sat, 7 Sep 2019 03:10:20 +0400 Subject: [PATCH] FS-12041: [Core] Fix memory leak on msrp shutdown --- src/switch_msrp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/switch_msrp.c b/src/switch_msrp.c index 6cf2974d3e..bc680d11ca 100644 --- a/src/switch_msrp.c +++ b/src/switch_msrp.c @@ -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()