X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=lib%2FTest%2FValgrind.pm;h=e70a912d2d089512750322f9a8d84fb5165daadb;hb=1990c796ff7ec945e5a48d1601b3fd7547c479d3;hp=31a63234601267e148152ffd4f031ee85f68af74;hpb=550ce3f06282d07682d0816234855efee985aa9a;p=perl%2Fmodules%2FTest-Valgrind.git diff --git a/lib/Test/Valgrind.pm b/lib/Test/Valgrind.pm index 31a6323..e70a912 100644 --- a/lib/Test/Valgrind.pm +++ b/lib/Test/Valgrind.pm @@ -231,6 +231,12 @@ sub import { } } +END { + if ($run and eval { require DynaLoader; 1 }) { + DynaLoader::dl_unload_file($_) for @DynaLoader::dl_librefs; + } +} + =head1 CAVEATS You can't use this module to test code given by the C<-e> command-line switch.