Skip to content

Commit d598075

Browse files
sbejarJunio C Hamano
authored andcommitted
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>
1 parent f527cb8 commit d598075

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

git-svnimport.perl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,10 @@ sub file {
136136

137137
print "... $rev $path ...\n" if $opt_v;
138138
my (undef, $properties);
139+
my $pool = SVN::Pool->new();
139140
eval { (undef, $properties)
140-
= $self->{'svn'}->get_file($path,$rev,$fh); };
141+
= $self->{'svn'}->get_file($path,$rev,$fh,$pool); };
142+
$pool->clear;
141143
if($@) {
142144
return undef if $@ =~ /Attempted to get checksum/;
143145
die $@;

0 commit comments

Comments
 (0)