Possible memory leak using HTML::Parse

Alex Bernardin (alexjb@cnet.com)
Fri, 30 May 1997 08:00:03 -0700 (PDT)


-----BEGIN PGP SIGNED MESSAGE-----

Ian Beckwith writes:
 > Hi.
 > 
 > I think I have found a problem with the HTML::Parse module
 > I have narrowed it down to the following script:
 > 
 > #!/usr/bin/perl -w
 > 
 > use HTML::Parse;
 > {local $/=undef; $page=<>;}
.......[snip]
 > the process size (as reported by ps) grew to 23Mb before I killed it.
 > 
 > If I understand correctly, $parser should be freed each time through
 > the for loop, but evidently it isn't.


.. I have had similar suspicions regarding the Net::FTP module, though
I have not yet narrowed it down that far.  I have seen similar
behavior though, with program process size growing significatnly when
using a loop.

...AlexJB



-----BEGIN PGP SIGNATURE-----
Version: 2.6.2
Comment: For my key see: http://hcirisc.cs.binghamton.edu/~alexjb

iQCVAwUBM47rb5BKuZ1E28FZAQGs8AP/ZOCkqDfn1UlHqX1p2B72QnRIhPPQIKKw
fKnKP2js/510Lq8cyLZkCl0WfsKofh+fDcQJEoObRqVYAO0ovdQJD1w9Css+yz7/
OOScluNmnAZ1IPLlcDFEkt9SdRrGEnPIL0PgtjsKj/Qat4wG0qmMCSsdL1bgYtUB
WkMrr7m8m94=
=uM0/
-----END PGP SIGNATURE-----