Home GnuPG

ecc: fix memory leak.
2a7aa3ea4d03Unpublished

Unpublished Commit · Learn More

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

Description

ecc: fix memory leak.

* cipher/ecc.c (ecc_verify): Release memory which was allocated before
by _gcry_pk_util_preparse_sigval.
(ecc_decrypt_raw): Likewise.

Caught by LeakSanitizer (LSan). Now the test suite (make check) passes
with no memleaks.

The last commit (0a7547e487a8bc4e7ac9599c55579eb2e4a13f06) includes
wrong fixes for sexp_release.

ecc_decrypt_raw fix added by gniibe.

  • Signed-off-by: Peter Wu <peter@lekensteyn.nl>

Details

Provenance
LekensteynAuthored on Jul 10 2015, 3:15 AM
gniibeCommitted on Jul 10 2015, 3:15 AM
Parents
rC0a7547e487a8: ecc: fix memory leaks.
Branches
Unknown
Tags
Unknown

Event Timeline

NIIBE Yutaka <gniibe@fsij.org> committed rC2a7aa3ea4d03: ecc: fix memory leak. (authored by Peter Wu <peter@lekensteyn.nl>).Jul 10 2015, 3:15 AM