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>
This commit is contained in:
parent
5dc1308562
commit
bf8a40b89e
@ -4021,7 +4021,8 @@ my ($ra_invalid, $can_do_switch, %ignored_err, $RA);
|
|||||||
BEGIN {
|
BEGIN {
|
||||||
# enforce temporary pool usage for some simple functions
|
# enforce temporary pool usage for some simple functions
|
||||||
no strict 'refs';
|
no strict 'refs';
|
||||||
for my $f (qw/rev_proplist get_latest_revnum get_uuid get_repos_root/) {
|
for my $f (qw/rev_proplist get_latest_revnum get_uuid get_repos_root
|
||||||
|
get_file/) {
|
||||||
my $SUPER = "SUPER::$f";
|
my $SUPER = "SUPER::$f";
|
||||||
*$f = sub {
|
*$f = sub {
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user