Browse Source

Fix resource leakage

pull/203/head
Oliverpool 9 years ago
parent
commit
f15cbbf333
  1. 4
      patacrep/build.py

4
patacrep/build.py

@ -300,6 +300,10 @@ class SongbookBuilder:
standard_output.join()
process.wait()
# Close the stdout and stderr to prevent ResourceWarning:
process.stdout.close()
process.stderr.close()
if process.returncode:
raise errors.LatexCompilationError(self.basename)

Loading…
Cancel
Save