Remove free because it's freed later
This commit is contained in:
parent
c45b6beba1
commit
4bd989a02a
|
@ -1283,9 +1283,10 @@ C_KZG_RET verify_aggregate_kzg_proof(bool *out,
|
||||||
KZGCommitment aggregated_poly_commitment;
|
KZGCommitment aggregated_poly_commitment;
|
||||||
BLSFieldElement evaluation_challenge;
|
BLSFieldElement evaluation_challenge;
|
||||||
ret = compute_aggregated_poly_and_commitment(aggregated_poly, &aggregated_poly_commitment, &evaluation_challenge, polys, expected_kzg_commitments, n);
|
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);
|
free(polys);
|
||||||
polys = NULL;
|
polys = NULL;
|
||||||
if (ret != C_KZG_OK) goto free_out;
|
|
||||||
|
|
||||||
BLSFieldElement y;
|
BLSFieldElement y;
|
||||||
ret = evaluate_polynomial_in_evaluation_form(&y, aggregated_poly, &evaluation_challenge, s);
|
ret = evaluate_polynomial_in_evaluation_form(&y, aggregated_poly, &evaluation_challenge, s);
|
||||||
|
|
Loading…
Reference in New Issue