Browse Source

Reintroduce svn pools to solve the memory leak.

Introduced in 4802426.

Signed-off-by: Santi Béjar <sbejar@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
maint
Santi_Béjar 19 years ago committed by Junio C Hamano
parent
commit
d598075e52
  1. 4
      git-svnimport.perl

4
git-svnimport.perl

@ -136,8 +136,10 @@ sub file { @@ -136,8 +136,10 @@ sub file {

print "... $rev $path ...\n" if $opt_v;
my (undef, $properties);
my $pool = SVN::Pool->new();
eval { (undef, $properties)
= $self->{'svn'}->get_file($path,$rev,$fh); };
= $self->{'svn'}->get_file($path,$rev,$fh,$pool); };
$pool->clear;
if($@) {
return undef if $@ =~ /Attempted to get checksum/;
die $@;

Loading…
Cancel
Save