From b8e2f83ae69e6451fb374c02ca20e3f60657c0f7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bodo=20M=C3=B6ller?= Date: Wed, 4 Jul 2001 20:55:36 +0000 Subject: [PATCH] Call ENGINE_cleanup() to avoid memory leak. --- crypto/ec/ectest.c | 2 ++ ssl/ssltest.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/crypto/ec/ectest.c b/crypto/ec/ectest.c index 6da5d4b247..bebfb24e42 100644 --- a/crypto/ec/ectest.c +++ b/crypto/ec/ectest.c @@ -65,6 +65,7 @@ int main(int argc, char * argv[]) { puts("Elliptic curves are disabled."); retur #include +#include #include #define ABORT do { \ @@ -617,6 +618,7 @@ int main(int argc, char *argv[]) if (P_384) EC_GROUP_free(P_384); if (P_521) EC_GROUP_free(P_521); + ENGINE_cleanup(); ERR_free_strings(); ERR_remove_state(0); CRYPTO_mem_leaks_fp(stderr); diff --git a/ssl/ssltest.c b/ssl/ssltest.c index a19f70380c..0960c1acbc 100644 --- a/ssl/ssltest.c +++ b/ssl/ssltest.c @@ -124,6 +124,7 @@ #include #include #include +#include #include #include #ifdef OPENSSL_SYS_WINDOWS @@ -704,6 +705,7 @@ end: #ifndef OPENSSL_NO_RSA free_tmp_rsa(); #endif + ENGINE_cleanup(); ERR_free_strings(); ERR_remove_state(0); EVP_cleanup(); -- 2.25.1