Close-binary-input-port did not close its input buffer.
authorMatt Birkholz <puck@birchwood-abbey.net>
Thu, 2 Feb 2017 16:52:12 +0000 (09:52 -0700)
committerMatt Birkholz <puck@birchwood-abbey.net>
Thu, 2 Feb 2017 16:52:12 +0000 (09:52 -0700)
src/runtime/binary-port.scm

index 252a675681b9a37db6607d6c9ece84dec8facf7b..3c500708f01df8b99346bdce24208ce58b2f055f 100644 (file)
@@ -196,6 +196,7 @@ USA.
 
 (define (close-binary-input-port port)
   (let ((ib (port-input-buffer port)))
+    (close-input-buffer ib)
     (let ((ic (buffer-channel ib)))
       (if (and ic
               (let ((ob (port-output-buffer port)))