ec/ecp_nistp*.c: fix SEGVs.
[oweals/openssl.git] / crypto / ec / ecp_nistz256.c
index ea692b81ef283d4cbf03cd0942a6b64b27c06c8f..de9fbea5151f0601fc8cbd88444da64b0b010220 100644 (file)
@@ -870,8 +870,7 @@ static int ecp_nistz256_mult_precompute(EC_GROUP *group, BN_CTX *ctx)
  err:
     if (ctx != NULL)
         BN_CTX_end(ctx);
-    if (pre_comp)
-        ecp_nistz256_pre_comp_free(pre_comp);
+    ecp_nistz256_pre_comp_free(pre_comp);
     if (precomp_storage)
         OPENSSL_free(precomp_storage);
     EC_POINT_free(P);