Free allocated coeffs, avoid leak

This commit is contained in:
Ramana Kumar 2022-09-16 09:07:35 +01:00
parent 0861520a7e
commit c8b18c3a22
No known key found for this signature in database
GPG Key ID: ED471C788B900433
1 changed files with 3 additions and 1 deletions

View File

@ -605,7 +605,9 @@ C_KZG_RET new_poly_l_from_poly(poly_l *out, const poly *in, const KZGSettings *k
for (; i < out->length; i++) {
coeffs[i] = fr_zero;
}
return fft_fr(out->values, coeffs, false, out->length, ks->fs);
TRY(fft_fr(out->values, coeffs, false, out->length, ks->fs));
free(coeffs);
return C_KZG_OK;
}
}