-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sat, May 19, 2001 at 08:18:54PM +0200, Christian Hammers wrote:
> The following code leaks memory for each invocation of "sub flub":
> 
>         H! /usr/bin/perl -w
>         use strict;
> 
>         use DBI;
> 
>         my $dbh = DBI->connect('DBI:Pg:dbname=template1','jdassen', undef, 
>{RaiseError => 1});
>         Hmy $dbh = DBI->connect('DBI:CSV:f_dir=/tmp', undef, undef, {RaiseError => 
>1});
> 
>         sub flub() {
>                 local $dbh->{RaiseError};
>                 H This construct is recommended by DBI(3pm)
>         }
> 
>         while (1) { flub(); };

This is a known bug in Perl proper with tied hashes (hint: DBI's internal
implementation is a tied hash).  See the Known Problems section of `perldoc
perldelta`.

- -- 
Stephen Clouse <[EMAIL PROTECTED]>
Senior Programmer, IQ Coordinator Project Lead
The IQ Group, Inc. <http://www.theiqgroup.com/>

-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5.8

iQA/AwUBOwc1dgOGqGs0PadnEQKLVACg17gBmgGLPFj2qyQU0Q554BgnuJEAoNQd
kx9cZ+7fopbf4A43TAXjnJ+k
=7ED9
-----END PGP SIGNATURE-----

Reply via email to