Home GnuPG

ecc: fix memory leaks.
0a7547e487a8Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

ecc: fix memory leaks.

cipher/ecc.c (ecc_generate): Fix memory leak on error of
_gcry_pk_util_parse_flaglist and _gcry_ecc_eddsa_encodepoint.
(ecc_check_secret_key): Fix memory leak on error of
_gcry_ecc_update_curve_param.
(ecc_sign, ecc_verify, ecc_encrypt_raw, ecc_decrypt_raw): Remove
unnecessary sexp_release and fix memory leak on error of
_gcry_ecc_fill_in_curve.
(ecc_decrypt_raw): Fix double free of the point kG and memory leak
on error of _gcry_ecc_os2ec.

Details

Provenance
gniibeAuthored on Jul 6 2015, 5:01 AM
Parents
rCa36ee7501f68: mpi: Support FreeBSD 10 or later.
Branches
Unknown
Tags
Unknown

Event Timeline

NIIBE Yutaka <gniibe@fsij.org> committed rC0a7547e487a8: ecc: fix memory leaks. (authored by NIIBE Yutaka <gniibe@fsij.org>).Jul 6 2015, 5:01 AM