Remove free because it's freed later

This commit is contained in:
Justin Traglia 2022-12-19 15:35:39 -06:00
parent c45b6beba1
commit 4bd989a02a
1 changed files with 2 additions and 1 deletions

View File

@ -1283,9 +1283,10 @@ C_KZG_RET verify_aggregate_kzg_proof(bool *out,
KZGCommitment aggregated_poly_commitment;
BLSFieldElement evaluation_challenge;
ret = compute_aggregated_poly_and_commitment(aggregated_poly, &aggregated_poly_commitment, &evaluation_challenge, polys, expected_kzg_commitments, n);
if (ret != C_KZG_OK) goto free_out;
free(polys);
polys = NULL;
if (ret != C_KZG_OK) goto free_out;
BLSFieldElement y;
ret = evaluate_polynomial_in_evaluation_form(&y, aggregated_poly, &evaluation_challenge, s);