free NULL cleanup 7
[openssl.git] / crypto / ec / ec_check.c
index d3f534999e067cdf641ab2dd7764b2902ba641b7..1d44ad228321c8dcbbe5dcb5aaca8c447e04bccd 100644 (file)
@@ -112,9 +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);
-    if (point)
-        EC_POINT_free(point);
+    BN_CTX_free(new_ctx);
+    EC_POINT_free(point);
     return ret;
 }