3
爲什麼在Perl中泄漏?這爲什麼會泄漏?
$ perl -MDevel::LeakTrace::Fast -e 'our @a=(1);our @b=(1)'
leaked SV(0x0x84e053c) from -e line 1
$ perl -v
This is perl, v5.8.0 built for i386-linux-thread-multi
[...]
$ uname -a
Linux ant1 2.4.21-20.ELsmp #1 SMP Wed Aug 18 20:46:40 EDT 2004 i686 i686 i386 GNU/Linux
謝謝!
確定但爲什麼perl -MDevel :: LeakTrace :: Fast -e'我們的@a =(1);'顯示沒有泄漏?但perl -MDevel :: LeakTrace :: Fast -e'我們的@a =(1);我們的@b =(1);' ? – Pat 2008-11-17 18:51:10