Merge pull request #39 from ethereum/free-fs

Free the FFTSettings when freeing a KZGSettings
This commit is contained in:
Ramana Kumar 2022-12-17 19:54:46 +00:00 committed by GitHub
commit ddcf9ebff6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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);
}