diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-10-12 14:22:50 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-10-12 14:22:50 -0400 |
| commit | d33ea41645432eb194ae1366247e337a7454f799 (patch) | |
| tree | d18dc7e387cf05318585befb976bc6ceae10375c /src/stdlib/files.c | |
| parent | 6e5fb2ac4e5b780c74f310446ddd80d571170b0d (diff) | |
Fix memory leaks
Diffstat (limited to 'src/stdlib/files.c')
| -rw-r--r-- | src/stdlib/files.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |
