From: Niels Möller Date: Sun, 9 Apr 2017 10:27:23 +0000 (+0200) Subject: Fix memory leak in dlopen-test. X-Git-Tag: nettle_3.4rc1~52 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=5e480927a3b02cdf3052167d841ba8ca92a64514;p=thirdparty%2Fnettle.git Fix memory leak in dlopen-test. --- 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();