]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-12039: [Core] Fix memory leak on ssl shutdown.
authorAndrey Volk <andywolk@gmail.com>
Fri, 6 Sep 2019 13:50:16 +0000 (17:50 +0400)
committerAndrey Volk <andywolk@gmail.com>
Fri, 6 Sep 2019 13:50:16 +0000 (17:50 +0400)
src/switch_core_cert.c

index 5bcc046fe4fcb29d802880e79b388d24038643e8..0cc992b9ed23ab50bf8ca74a97fbf4c7cdb0cbbd 100644 (file)
@@ -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)