From: Andrey Volk Date: Fri, 6 Sep 2019 13:50:16 +0000 (+0400) Subject: FS-12039: [Core] Fix memory leak on ssl shutdown. X-Git-Tag: v1.10.2^2~108^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f00d285b5eef6c697ba8bc3ecfde82fc7c2dba65;p=thirdparty%2Ffreeswitch.git FS-12039: [Core] Fix memory leak on ssl shutdown. --- diff --git a/src/switch_core_cert.c b/src/switch_core_cert.c index 5bcc046fe4..0cc992b9ed 100644 --- a/src/switch_core_cert.c +++ b/src/switch_core_cert.c @@ -91,6 +91,10 @@ SWITCH_DECLARE(void) switch_ssl_destroy_ssl_locks(void) OPENSSL_free(ssl_mutexes); ssl_count--; } + + if (ssl_pool) { + switch_core_destroy_memory_pool(&ssl_pool); + } } static const EVP_MD *get_evp_by_name(const char *name)