@matheusbsbs / matheus-bagliano / commits / d598075e52
Fork 0

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>

Santi_Béjar committed Mar 27, 2006 at 13:26 UTC d598075e52634665bd25a80b085e300d338d21f5
1 file changed +3 -1
git-svnimport.perl
+3 -1
@@ -136,8 +136,10 @@ sub file {
136
137 print "... $rev $path ...\n" if $opt_v;
138 my (undef, $properties);
139 + my $pool = SVN::Pool->new();
140 eval { (undef, $properties)
140 - = $self->{'svn'}->get_file($path,$rev,$fh); };
141 + = $self->{'svn'}->get_file($path,$rev,$fh,$pool); };
142 + $pool->clear;
143 if($@) {
144 return undef if $@ =~ /Attempted to get checksum/;
145 die $@;