From 5e480927a3b02cdf3052167d841ba8ca92a64514 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Niels=20M=C3=B6ller?= Date: Sun, 9 Apr 2017 12:27:23 +0200 Subject: [PATCH] Fix memory leak in dlopen-test. --- ChangeLog | 3 +++ testsuite/dlopen-test.c | 1 + 2 files changed, 4 insertions(+) diff --git a/ChangeLog b/ChangeLog index ba6a1b93..2cc9af46 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2017-04-09 Niels Möller + * testsuite/dlopen-test.c (main): Call dlclose, to fix memory leak + on success. + * testsuite/pss-test.c: Delete magic to let valgrind to check if pss_encode_mgf1 is side-channel silent with respect to the salt and digest inputs. It turns out that the most significant bits of diff --git a/testsuite/dlopen-test.c b/testsuite/dlopen-test.c index 23ff25ad..99d3535b 100644 --- a/testsuite/dlopen-test.c +++ b/testsuite/dlopen-test.c @@ -28,6 +28,7 @@ main (int argc UNUSED, char **argv UNUSED) fprintf (stderr, "unexpected nettle version\n"); FAIL (); } + dlclose (handle); return EXIT_SUCCESS; #else SKIP(); -- 2.47.2