diff options
author | Jakub Jelen <jjelen@redhat.com> | 2022-09-30 14:54:14 +0200 |
---|---|---|
committer | Jussi Kivilinna <jussi.kivilinna@iki.fi> | 2022-10-02 16:53:12 +0300 |
commit | 567bc62e1c3046594088de7209fee7c545ece1e3 (patch) | |
tree | 2302b0657a7315bbbb0fb93949e056be29b0d69e /tests/hashtest.c | |
parent | 0909186b9e66aa3a8fac7b2571915c45a7bfaeb3 (diff) | |
download | libgcrypt-567bc62e1c3046594088de7209fee7c545ece1e3.tar.gz |
tests: Avoid memory leak
* tests/hashtest.c (run_longtest): Avoid memory leak on error
--
Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Diffstat (limited to 'tests/hashtest.c')
-rw-r--r-- | tests/hashtest.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/hashtest.c b/tests/hashtest.c index 9389e50c..379f7c40 100644 --- a/tests/hashtest.c +++ b/tests/hashtest.c @@ -452,6 +452,7 @@ run_longtest (int algo, int gigs) { fail ("gcry_md_open failed for %s (%d): %s", gcry_md_algo_name (algo), algo, gpg_strerror (err)); + free(hugepattern); return; } |