Changeset - 8dbe46ca608f
[Not reviewed]
default
0 1 0
Mads Kiilerich - 6 years ago 2019-10-03 22:52:53
mads@kiilerich.com
Grafted from: f922eb714cfd
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.
1 file changed with 4 insertions and 1 deletions:
0 comments (0 inline, 0 general)
kallithea/lib/vcs/backends/git/repository.py
Show inline comments
 
@@ -144,7 +144,10 @@ class GitRepository(BaseRepository):
 
            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 = {}
0 comments (0 inline, 0 general)