ec/ecp_nistp*.c: fix SEGVs.
[oweals/openssl.git] / crypto / ec / ec_check.c
index d3f534999e067cdf641ab2dd7764b2902ba641b7..422ca87cc6f2cf3458a27b3e207bcf4a9a35d367 100644 (file)
@@ -114,7 +114,6 @@ int EC_GROUP_check(const EC_GROUP *group, BN_CTX *ctx)
         BN_CTX_end(ctx);
     if (new_ctx != NULL)
         BN_CTX_free(new_ctx);
-    if (point)
-        EC_POINT_free(point);
+    EC_POINT_free(point);
     return ret;
 }