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 fb6027b8e5c770e60367bdb6d1ce180bd6fe096f..80e10013a82b2d8e800c6d0c34ab0acc112bb02d 100644 (file)
@@ -1452,5 +1452,7 @@ int setup_tests(void)
 
 void cleanup_tests(void)
 {
+#ifndef OPENSSL_NO_EC
     OPENSSL_free(curves);
+#endif
 }