DEC: fix memory leak

This commit is contained in:
hasufell 2014-05-25 04:06:05 +02:00
parent b71e4b1ce2
commit 3ea4006b1c
No known key found for this signature in database
GPG Key ID: 220CD1C5BDEED020

View File

@ -60,4 +60,6 @@ void ntru_decrypt_poly(
fmpz_poly_mod(a, ctx->q); fmpz_poly_mod(a, ctx->q);
poly_starmultiply(a, priv_key_inv, out, ctx, ctx->p); poly_starmultiply(a, priv_key_inv, out, ctx, ctx->p);
fmpz_poly_mod(out, ctx->p); fmpz_poly_mod(out, ctx->p);
fmpz_poly_clear(a);
} }