{"thread":{"id":"17363","subject":"[PATCH] git-svn: fix memory leak when checking for empty symlinks","startedAt":"2009-01-26T01:15:51Z","lastAt":"2009-01-26T01:15:51Z","messageCount":1,"participants":["Eric Wong"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"101925","messageId":"20090126011551.GA8628@dcvr.yhbt.net","threadId":"17363","inReplyTo":null,"subject":"[PATCH] git-svn: fix memory leak when checking for empty symlinks","fromName":"Eric Wong","fromEmail":"normalperson@yhbt.net","sentAt":"2009-01-26T01:15:51Z","receivedAt":"2009-01-26T01:15:51Z","isPatch":true,"sender":{"key":"e@80x24.org","avatar":null},"body":"By enforcing SVN::Pool usage when calling get_file once again.\n\nThis regression was introduced with the reintroduction of\nSVN::Ra::get_file() usage in\ndbc6c74d0858d77e61e092a48d467e725211f8e9\n\nSigned-off-by: Eric Wong <normalperson@yhbt.net>\n---\n git-svn.perl |    3 ++-\n 1 files changed, 2 insertions(+), 1 deletions(-)\n\ndiff --git a/git-svn.perl b/git-svn.perl\nindex d4cb538..5d39b39 100755\n--- a/git-svn.perl\n+++ b/git-svn.perl\n@@ -4021,7 +4021,8 @@ my ($ra_invalid, $can_do_switch, %ignored_err, $RA);\n BEGIN {\n \t# enforce temporary pool usage for some simple functions\n \tno strict 'refs';\n-\tfor my $f (qw/rev_proplist get_latest_revnum get_uuid get_repos_root/) {\n+\tfor my $f (qw/rev_proplist get_latest_revnum get_uuid get_repos_root\n+\t              get_file/) {\n \t\tmy $SUPER = \"SUPER::$f\";\n \t\t*$f = sub {\n \t\t\tmy $self = shift;\n-- \nEric Wong\n"}]}