hare

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

commit f54c20b2dec06cc862b429f642ea10bb52b0a478
parent 42b75284399828b789615b8c88d285f738d8aa70
Author: Alexey Yerin <yyp@disroot.org>
Date:   Mon, 25 Oct 2021 17:45:58 +0300

iobus: free the bus object itself in destroy()

Signed-off-by: Alexey Yerin <yyp@disroot.org>

Diffstat:
Miobus/io_uring/bus.ha | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/iobus/io_uring/bus.ha b/iobus/io_uring/bus.ha @@ -25,6 +25,7 @@ export fn new() (*bus | error) = { // Destroys an I/O bus. export fn destroy(bus: *bus) void = { io_uring::finish(&bus.uring); + free(bus); }; // Returns an [[io::file]] for the bus itself.