free NULL cleanup 7
[openssl.git] / crypto / ec / ec_check.c
index 422ca87cc6f2cf3458a27b3e207bcf4a9a35d367..1d44ad228321c8dcbbe5dcb5aaca8c447e04bccd 100644 (file)
@@ -112,8 +112,7 @@ int EC_GROUP_check(const EC_GROUP *group, BN_CTX *ctx)
  err:
     if (ctx != NULL)
         BN_CTX_end(ctx);
-    if (new_ctx != NULL)
-        BN_CTX_free(new_ctx);
+    BN_CTX_free(new_ctx);
     EC_POINT_free(point);
     return ret;
 }