aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/ec
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>2001-07-04 20:55:36 +0000
committerBodo Möller <bodo@openssl.org>2001-07-04 20:55:36 +0000
commitb8e2f83ae69e6451fb374c02ca20e3f60657c0f7 (patch)
tree774f1b4e686e1e9c662dcc7dcd7e96bd33061037 /crypto/ec
parent93dbd83570518be59787162150947a1e2941db67 (diff)
downloadopenssl-b8e2f83ae69e6451fb374c02ca20e3f60657c0f7.tar.gz
Call ENGINE_cleanup() to avoid memory leak.
Diffstat (limited to 'crypto/ec')
-rw-r--r--crypto/ec/ectest.c2
1 files changed, 2 insertions, 0 deletions
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 <openssl/ec.h>
+#include <openssl/engine.h>
#include <openssl/err.h>
#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);