]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
Fix memory leak in dlopen-test.
authorNiels Möller <nisse@lysator.liu.se>
Sun, 9 Apr 2017 10:27:23 +0000 (12:27 +0200)
committerNiels Möller <nisse@lysator.liu.se>
Sun, 9 Apr 2017 10:27:23 +0000 (12:27 +0200)
ChangeLog
testsuite/dlopen-test.c

index ba6a1b93a2bcfa3f8f870829e998a07d3ee54ee1..2cc9af4615085cdd2eda20dae528864fed1489fe 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2017-04-09  Niels Möller  <nisse@lysator.liu.se>
 
+       * 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
index 23ff25ade5a3f687759d47c9af79a5a07a6f955e..99d3535be16896a91d9864c75c9e550aeec322bd 100644 (file)
@@ -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();