Skip to content

Commit

Permalink
Fix file memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
malleoz committed Sep 18, 2020
1 parent 536a033 commit 0a93ea7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions logger.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0a93ea7

Please sign in to comment.