From d598075e52634665bd25a80b085e300d338d21f5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Santi=5FB=C3=A9jar?= Date: Mon, 27 Mar 2006 13:26:01 +0200 Subject: [PATCH] Reintroduce svn pools to solve the memory leak. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Introduced in 4802426. Signed-off-by: Santi BĂ©jar Signed-off-by: Junio C Hamano --- git-svnimport.perl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/git-svnimport.perl b/git-svnimport.perl index 60ed7ae3ee..61f559f0a8 100755 --- a/git-svnimport.perl +++ b/git-svnimport.perl @@ -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 $@; -- 2.11.4.GIT