From 344d9f03988a41385feb2c63b8d4c92eb7bfe36d Mon Sep 17 00:00:00 2001 From: flysand7 Date: Mon, 31 Jul 2023 04:19:05 +1100 Subject: [PATCH] Fix files not being removed from the pool upon closing --- src/impl/stdlib-file/file.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/impl/stdlib-file/file.c b/src/impl/stdlib-file/file.c index 0ef014f..43ecb85 100644 --- a/src/impl/stdlib-file/file.c +++ b/src/impl/stdlib-file/file.c @@ -80,5 +80,6 @@ int fclose(FILE *file) { if(status != _RT_STATUS_OK) { return EOF; } + cia_pool_free(&_file_pool, file); return 0; }