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

git-svn: fix memory leak when checking for empty symlinks

By enforcing SVN::Pool usage when calling get_file once again. This regression was introduced with the reintroduction of SVN::Ra::get_file() usage in dbc6c74d0858d77e61e092a48d467e725211f8e9 Signed-off-by: Eric Wong <normalperson@yhbt.net>

Eric Wong committed Jan 25, 2009 at 15:35 UTC bf8a40b89eef66bc16902f7ea1a73352b8ba3d18
1 file changed +2 -1
git-svn.perl
+2 -1
@@ -4021,7 +4021,8 @@ my ($ra_invalid, $can_do_switch, %ignored_err, $RA);
4021 BEGIN {
4022 # enforce temporary pool usage for some simple functions
4023 no strict 'refs';
4024 - for my $f (qw/rev_proplist get_latest_revnum get_uuid get_repos_root/) {
4024 + for my $f (qw/rev_proplist get_latest_revnum get_uuid get_repos_root
4025 + get_file/) {
4026 my $SUPER = "SUPER::$f";
4027 *$f = sub {
4028 my $self = shift;