Home GnuPG

Fix most of memory leaks in tests code
5c150ece094bUnpublished

Unpublished Commit · Learn More

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

Description

Fix most of memory leaks in tests code

* tests/basic.c (check_ccm_cipher): Close cipher after use.
* tests/basic.c (check_one_cipher): Correct length of used buffer.
* tests/benchmark.c (cipher_bench): Use xcalloc to make buffer
  initialized.
* tests/keygen.c (check_ecc_keys): Release generated key.
* tests/t-mpi-point.c (context_param): Release mpi Q.
* tests/t-sexp.c (check_extract_param): Release extracted number.

The only remaining reported memory leak is one expected leak from
mpitests.c.

  • Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>

Details

Provenance
lumagAuthored on Jan 25 2014, 12:21 AM
wernerCommitted on Jan 27 2014, 2:33 PM
Parents
rC6d87e6abdfb7: Fix memory leaks in ecc code
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rC5c150ece094b: Fix most of memory leaks in tests code (authored by Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>).Jan 27 2014, 2:33 PM