Free the FFTSettings when freeing a KZGSettings

Closes #38
This commit is contained in:
Ramana Kumar 2022-12-17 19:47:18 +00:00
parent d8db26e932
commit 777972d150
No known key found for this signature in database
GPG Key ID: ED471C788B900433
1 changed files with 1 additions and 0 deletions

View File

@ -710,6 +710,7 @@ static void free_fft_settings(FFTSettings *fs) {
* @param ks The settings to be freed
*/
static void free_kzg_settings(KZGSettings *ks) {
free((FFTSettings*)ks->fs);
free(ks->g1_values);
free(ks->g2_values);
}