hare

[hare] The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit 8e85745f4de5c12f2b58f5086ba3d4bc46098962
parent ddf7a846d7583292c5727543e46031bacf8c6dce
Author: Tom Lebreux <me@tomlebreux.com>
Date:   Sun, 29 May 2022 08:17:38 -0400

bufio::dynamic: free resources on io::close

Signed-off-by: Tom Lebreux <me@tomlebreux.com>

Diffstat:
Mbufio/memstream.ha | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/bufio/memstream.ha b/bufio/memstream.ha @@ -78,6 +78,7 @@ const dynamic_vt_w: io::vtable = io::vtable { seeker = &seek, copier = &copy, writer = &dynamic_write, + closer = &dynamic_close, ... }; @@ -86,6 +87,7 @@ const dynamic_vt_rw: io::vtable = io::vtable { copier = &copy, reader = &read, writer = &dynamic_write, + closer = &dynamic_close, ... };