Free allocated coeffs, avoid leak
This commit is contained in:
parent
0861520a7e
commit
c8b18c3a22
|
@ -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++) {
|
for (; i < out->length; i++) {
|
||||||
coeffs[i] = fr_zero;
|
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue