From dbbea314980daa0e9366dd265535437841fcb8a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E7=99=BD=E4=BA=91?= <71159641+littlewhitecloud@users.noreply.github.com> Date: Sat, 9 Dec 2023 18:45:48 +0800 Subject: [PATCH] free --- src/output.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/output.c b/src/output.c index 4b3421f5..fb75a9d4 100644 --- a/src/output.c +++ b/src/output.c @@ -111,7 +111,9 @@ static void write_gitinore(const char *p) return; FILE *gitinore = fopen(filename, "w"); fprintf(gitinore, "*"); + fclose(gitinore); + free(filename); } static char *get_path_to_file_in_jou_compiled(const char *filename)