From 693abf252741abea667f96cb67f3a11ef35a054e Mon Sep 17 00:00:00 2001 From: Peter Wu Date: Tue, 7 Jul 2015 18:43:30 +0200 Subject: ecc: fix memory leak * cipher/ecc.c: Release memory which was allocated before by _gcry_pk_util_preparse_sigval. -- Caught by LeakSanitizer (LSan). Now the test suite (make check) passes with no memleaks. Signed-off-by: Peter Wu --- cipher/ecc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cipher/ecc.c b/cipher/ecc.c index f5bc50aa..c17a553f 100644 --- a/cipher/ecc.c +++ b/cipher/ecc.c @@ -1040,6 +1040,7 @@ ecc_verify (gcry_sexp_t s_sig, gcry_sexp_t s_data, gcry_sexp_t s_keyparms) if (rc) goto leave; } + sexp_release (l1); /* Add missing parameters using the optional curve parameter. */ l1 = sexp_find_token (s_keyparms, "curve", 5); if (l1) -- cgit v1.2.1