X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FTest-Valgrind.git;a=blobdiff_plain;f=lib%2FTest%2FValgrind%2FParser%2FXML%2FTwig.pm;h=29d0f9681850abb3b7980a34a9cae1b3f304b794;hp=318e2dbb7ae20799027e9337e3abc6aec7ae62c4;hb=15ef67081abedb9919e112ca5a7e8b6e7fc9c6d2;hpb=c449f79f31a73c4389c3f9ea5cf99c62e68b47ac diff --git a/lib/Test/Valgrind/Parser/XML/Twig.pm b/lib/Test/Valgrind/Parser/XML/Twig.pm index 318e2db..29d0f96 100644 --- a/lib/Test/Valgrind/Parser/XML/Twig.pm +++ b/lib/Test/Valgrind/Parser/XML/Twig.pm @@ -94,7 +94,7 @@ sub handle_error { $node->kid('stack')->children('frame') ]; for (qw/leakedbytes leakedblocks/) { - my $kid = $node->first_child($_); + my $kid = ($xwhat || $node)->first_child($_); next unless $kid; $data->{$_} = int $kid->text; }