Skip to content

Commit

Permalink
Reintroduce svn pools to solve the memory leak.
Browse files Browse the repository at this point in the history
Introduced in 4802426.

Signed-off-by: Santi Béjar <sbejar@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Santi_Béjar authored and Junio C Hamano committed Apr 21, 2006
1 parent f527cb8 commit d598075
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion git-svnimport.perl
Original file line number Diff line number Diff line change
Expand Up @@ -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 $@;
Expand Down

0 comments on commit d598075

Please sign in to comment.