Fix no-ec
authorDr. Stephen Henson <steve@openssl.org>
Thu, 10 Aug 2017 15:45:18 +0000 (16:45 +0100)
committerDr. Stephen Henson <steve@openssl.org>
Thu, 10 Aug 2017 15:45:18 +0000 (16:45 +0100)
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4134)

test/ectest.c

index fb6027b..80e1001 100644 (file)
@@ -1452,5 +1452,7 @@ int setup_tests(void)
 
 void cleanup_tests(void)
 {
+#ifndef OPENSSL_NO_EC
     OPENSSL_free(curves);
+#endif
 }