Fix memory leaks in NewHope

This commit is contained in:
Thom Wiggers 2020-02-19 14:51:19 -05:00
parent 9a4e9da47e
commit 81caa58b57
No known key found for this signature in database
GPG Key ID: 001BB0A7CE26E363
4 changed files with 4 additions and 0 deletions

View File

@ -225,6 +225,7 @@ void PQCLEAN_NEWHOPE1024CCA_CLEAN_poly_uniform(poly *a, const unsigned char *see
}
}
}
shake128_ctx_release(&state);
}
}

View File

@ -225,6 +225,7 @@ void PQCLEAN_NEWHOPE1024CPA_CLEAN_poly_uniform(poly *a, const unsigned char *see
}
}
}
shake128_ctx_release(&state);
}
}

View File

@ -221,6 +221,7 @@ void PQCLEAN_NEWHOPE512CCA_CLEAN_poly_uniform(poly *a, const unsigned char *seed
}
}
}
shake128_ctx_release(&state);
}
}

View File

@ -221,6 +221,7 @@ void PQCLEAN_NEWHOPE512CPA_CLEAN_poly_uniform(poly *a, const unsigned char *seed
}
}
}
shake128_ctx_release(&state);
}
}