From 5f8b3c45522f3655564bd0d8baa962b011338a98 Mon Sep 17 00:00:00 2001 From: talksik Date: Sat, 26 Sep 2026 16:39:31 -0700 Subject: [PATCH] fix: cleanup file pointer --- coreutils/cat.c | 1 + 1 file changed, 1 insertion(+) diff --git a/coreutils/cat.c b/coreutils/cat.c index 028af9f..9eef91a 100644 --- a/coreutils/cat.c +++ b/coreutils/cat.c @@ -31,6 +31,7 @@ int main(int argc, char *argv[]) { } fprintf(stderr, "Completed forward to stdout"); + fclose(file); return 0; }