From d33ea41645432eb194ae1366247e337a7454f799 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 12 Oct 2025 14:22:50 -0400 Subject: Fix memory leaks --- src/stdlib/files.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/stdlib/files.c') diff --git a/src/stdlib/files.c b/src/stdlib/files.c index 88d78676..b0545420 100644 --- a/src/stdlib/files.c +++ b/src/stdlib/files.c @@ -116,6 +116,7 @@ static file_t *_load_file(const char *filename, FILE *file) { ret->relative_filename = &filename[cwd_len + 1]; } } + if (line_buf != NULL) free(line_buf); return ret; } -- cgit v1.2.3