Skip to content

Commit

Permalink
Merge pull request #1422 from rburing/inv_series_without_leak
Browse files Browse the repository at this point in the history
Fix memory leak in `fmpz_mod_poly_inv_series`
  • Loading branch information
fredrik-johansson authored Sep 8, 2023
2 parents 53e0f22 + 7690043 commit 411a084
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/fmpz_mod_poly/inv_series.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ void fmpz_mod_poly_inv_series(fmpz_mod_poly_t g, const fmpz_mod_poly_t h, slong
_fmpz_mod_poly_set_length(t, n);
_fmpz_mod_poly_normalise(t);
fmpz_mod_poly_swap(g, t, ctx);
fmpz_mod_poly_clear(t, ctx);
}
else
{
Expand Down

0 comments on commit 411a084

Please sign in to comment.