projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f527cb8
)
Reintroduce svn pools to solve the memory leak.
author
Santi_Béjar
<sbejar@gmail.com>
Mon, 27 Mar 2006 11:26:01 +0000
(13:26 +0200)
committer
Junio C Hamano
<junkio@cox.net>
Fri, 21 Apr 2006 06:41:24 +0000
(23:41 -0700)
Introduced in
4802426
.
Signed-off-by: Santi Béjar <sbejar@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-svnimport.perl
patch
|
blob
|
history
diff --git
a/git-svnimport.perl
b/git-svnimport.perl
index
60ed7ae
..
61f559f
100755
(executable)
--- 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 $@;