From 0a93ea7ae0b874451ef807f3239da4b9a5845974 Mon Sep 17 00:00:00 2001 From: sowens99 Date: Fri, 18 Sep 2020 05:29:57 -0400 Subject: [PATCH] Fix file memory leak --- logger.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/logger.c b/logger.c index 366ee8b..0e86681 100644 --- a/logger.c +++ b/logger.c @@ -36,6 +36,8 @@ int recipeLog(int level, char *process, char *subProcess, char *activity, char * FILE* fp = fopen("recipes.log", "a"); fputs(date, fp); fputs(data, fp); + + fclose(fp); } } return 0;