From 31970d51fde57944be94b334fdc0df234efffc93 Mon Sep 17 00:00:00 2001 From: Dragos Oancea Date: Wed, 7 Jul 2021 12:47:33 +0000 Subject: [PATCH] [core] MSRP: fix memleak (ssl) --- src/switch_msrp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/switch_msrp.c b/src/switch_msrp.c index 6a75945874..b76a043261 100644 --- a/src/switch_msrp.c +++ b/src/switch_msrp.c @@ -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;