Subject: | Receiving Attempt to free unreferenced scalar |
I'm receiving the following message:
Attempt to free unreferenced scalar at none_memory_leak.pl line 45.
with the 0.13
use strict;
use warnings;
use List::MoreUtils qw{all any none};
my @checkme = qw{HI FL AK};
my @states = qw{AZ CA NV MI DE PA};
my $misses = 0;
while ( 1 == 1 ) {
foreach my $to_check (@checkme) {
# if (all { $to_check eq $_ } @states) {
# $misses++;
# }
# if (any { $to_check eq $_ } @states) {
# $misses++;
# }
if (none { $to_check eq $_ } @states) {
$misses++;
}
}
}
exit;
perl -VSummary of my perl5 (revision 5.0 version 6 subversion 1)
configuration:
Platform:
osname=linux, osvers=2.4.18-4smp, archname=i686-linux
uname='linux rip 2.4.18-4smp #1 smp thu may 2 18:32:34 edt 2002 i686
unknown '
config_args='-Dprefix=/u01/app/perl'
hint=previous, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=undef
useperlio=undef d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
Compiler:
cc='cc', ccflags ='-fno-strict-aliasing -I/usr/local/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
optimize='-O2',
cppflags='-fno-strict-aliasing -I/usr/local/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
ccversion='', gccversion='2.96 20000731 (Red Hat Linux 7.3
2.96-112)', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
alignbytes=4, usemymalloc=n, prototype=define
Linker and Libraries:
ld='cc', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lnsl -lndbm -lgdbm -ldl -lm -lc -lcrypt -lutil
perllibs=-lnsl -ldl -lm -lc -lcrypt -lutil
libc=/lib/libc-2.2.5.so, so=so, useshrplib=false, libperl=libperl.a
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib
-L/u01/app/perl/lib'
Characteristics of this binary (from libperl):
Compile-time options: USE_LARGE_FILES
Built under linux
Compiled at Aug 7 2002 18:40:37
%ENV:
PERL5LIB="/lf/21st/devel/lib:/lf/utils/devel/lib"
@INC:
/lf/21st/devel/lib
/lf/utils/devel/lib/i686-linux
/lf/utils/devel/lib
/u01/app/perl/lib/perl5/5.6.1/i686-linux
/u01/app/perl/lib/perl5/5.6.1
/u01/app/perl/lib/perl5/site_perl/5.6.1/i686-linux
/u01/app/perl/rip/lib/perl5/site_perl/5.6.1
/u01/app/perl/rip/lib/perl5/site_perl
.