Home GnuPG

cipher: Fix memleaks in (self)tests.
4a064e2a06feUnpublished

Unpublished Commit · Learn More

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

Description

cipher: Fix memleaks in (self)tests.

* cipher/dsa.c: Release memory for MPI and sexp structures.
* cipher/ecc.c: Release memory for sexp structure.
* tests/keygen.c: Likewise.

These leaks broke the mpitests, basic and keygen tests when running
under AddressSanitizer.

Minor formatting changes by -wk.

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

Details

Provenance
LekensteynAuthored on Mar 23 2016, 6:21 PM
wernerCommitted on Mar 24 2016, 5:02 PM
Parents
rC470a30db241a: Mark constant MPIs as non-leaked
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rC4a064e2a06fe: cipher: Fix memleaks in (self)tests. (authored by Peter Wu <peter@lekensteyn.nl>).Mar 24 2016, 5:02 PM