Call single parent free_comp routine.
[openssl.git] / crypto / ec / ecp_nistp521.c
index d6565177914601770dac29ca0575662e2aa198a0..ee9c07e885be0f4aff9de1c3fad02bffe461f551 100644 (file)
@@ -2008,8 +2008,7 @@ int ec_GFp_nistp521_precompute_mult(EC_GROUP *group, BN_CTX *ctx)
     felem tmp_felems[16];
 
     /* throw away old precomputation */
-    EC_nistp521_pre_comp_free(group->pre_comp.nistp521);
-    group->pre_comp.nistp521 = NULL;
+    EC_pre_comp_free(group);
     if (ctx == NULL)
         if ((ctx = new_ctx = BN_CTX_new()) == NULL)
             return 0;