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()