diff --git a/src/c_kzg_4844.c b/src/c_kzg_4844.c index 2171a5b..8509ff1 100644 --- a/src/c_kzg_4844.c +++ b/src/c_kzg_4844.c @@ -813,6 +813,10 @@ C_KZG_RET load_trusted_setup(KZGSettings *out, const uint8_t g1_bytes[], size_t if (ret != C_KZG_OK) goto error_free_out; ret = fft_g1(out->g1_values, g1_projective, true, n1, out->fs); if (ret != C_KZG_OK) goto error_free_out; + + free(g1_projective); + g1_projective = NULL; + ret = reverse_bit_order(out->g1_values, sizeof(g1_t), n1); if (ret != C_KZG_OK) goto error_free_out;