Could you nice folks clarify what Test::LeakTrace does and what problems it finds? I wonder if I misunderstand because it's giving me errors for very, very simple code. Or maybe there are some very simple things about Perl I've been doing wrong all these years. You decide (then tell me).
Consider this code:
AlmostEmpty.pm is, well, almost empty:#!/usr/bin/perl -w use strict; use Test::LeakTrace; # test for leak leaktrace { require './AlmostEmpty.pm'; };
Here's the output from running the script:1;
leaked SCALAR(0x558ad5e37f40) from ./dev.pl line 7.
It seems weird to me to get any kind of memory leak for such a very basic script.
Here's my perl version:
This is perl 5, version 26, subversion 0 (v5.26.0) built for x86_64-li +nux-gnu-thread-multi (with 56 registered patches, see perl -V for more detail)
I'm running on Ubuntu Linux 17.10.
In reply to What does Test::LeakTrace do? by TerryBerry
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |