Re: memory-leak - svn::repos instances are not destroyed properly

2011-10-17 Thread m.voit
On 14.10.2011 13:17, Stefan Sperling wrote: > The perl bindings don't abstract away memory pool handling. > If you don't pass a pool argument to fs->revision_root(), > it will use the global pool, which can never be cleared. > > You need to use an iteration pool in your script and clear it after >

Re: memory-leak - svn::repos instances are not destroyed properly

2011-10-14 Thread Stefan Sperling
On Fri, Oct 14, 2011 at 12:33:08AM +0200, Max Voit wrote: > Hi, > > developing an application dealing with many repositories the existence > of paths within that repositories had to be checked. > Using something like: > > my $repos = SVN::Repos::open($localpath) or die "no such repo"; > m

Re: memory-leak - svn::repos instances are not destroyed properly

2011-10-14 Thread Daniel Shahaf
Does it also reproduce if you remove the revision_root() call? What does Perl invoke when an object becomes unreferenced or falls out of scope? Max Voit wrote on Fri, Oct 14, 2011 at 00:33:08 +0200: > Hi, > > developing an application dealing with many repositories the existence > of paths withi

memory-leak - svn::repos instances are not destroyed properly

2011-10-13 Thread Max Voit
Hi, developing an application dealing with many repositories the existence of paths within that repositories had to be checked. Using something like: my $repos = SVN::Repos::open($localpath) or die "no such repo"; my $fs= $repos->fs; $ispath = $repos->fs->revision_root( $f