# HG changeset patch # User Mads Kiilerich # Date 1570135973 -7200 # Node ID 8dbe46ca608f9af67f0b1b83cc2218e9970f1ba0 # Parent 0288dd05203312bcb47a84c5e0eab08ae2f0a527 vcs: close SubprocessIOChunker after use - it has a close method, so let's make sure we use it It might not be strictly necessary, but it might free some resources earlier. diff -r 0288dd052033 -r 8dbe46ca608f kallithea/lib/vcs/backends/git/repository.py --- a/kallithea/lib/vcs/backends/git/repository.py Thu Oct 03 23:02:07 2019 +0200 +++ b/kallithea/lib/vcs/backends/git/repository.py Thu Oct 03 22:52:53 2019 +0200 @@ -144,7 +144,10 @@ else: raise RepositoryError(tb_err) - return ''.join(p.output), ''.join(p.error) + try: + return ''.join(p.output), ''.join(p.error) + finally: + p.close() def run_git_command(self, cmd): opts = {}