summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--guix/build/utils.scm1
1 files changed, 1 insertions, 0 deletions
diff --git a/guix/build/utils.scm b/guix/build/utils.scm
index 305ce7d4ee..1808c63ce5 100644
--- a/guix/build/utils.scm
+++ b/guix/build/utils.scm
@@ -170,6 +170,7 @@ MATCH OUTPUT-PORT)."
                            (display line out)
                            (newline out)))
                     (loop (read-line in)))))))
+        (close out)
         (rename-file template file))
       (lambda (key . args)
         (false-if-exception (delete-file template))))))