]> git.donarmstrong.com Git - lilypond.git/commitdiff
Fix another fd leak
authorMatthias Kilian <kili@outback.escape.de>
Tue, 14 Nov 2006 23:11:52 +0000 (00:11 +0100)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Tue, 14 Nov 2006 23:11:52 +0000 (00:11 +0100)
scm/backend-library.scm

index aa432017db6301e658dd77d65822f229333d6a8b..07ab29ecd70880bc94dd5fdaa08c011ae7f29ff0 100644 (file)
              (if (equal? "-" file-name) "<stdout>" file-name))
   (if (equal? file-name "-")
       (display value)
-      (display value (open-file file-name "w")))
+      (let ((port (open-file file-name "w")))
+       (display value port)
+       (close-port port)))
+
   (ly:progress "\n")
   "")