From 44100c49d1caabe2e053752c06c37524bad5d0c5 Mon Sep 17 00:00:00 2001 From: Tomas Rivera <137088692+Totorile1@users.noreply.github.com> Date: Fri, 3 Apr 2026 18:47:21 +0200 Subject: [PATCH] fixed small memory leak --- src/notes.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/notes.c b/src/notes.c index 6539b9e..388b179 100644 --- a/src/notes.c +++ b/src/notes.c @@ -202,6 +202,7 @@ char *updateJournal(char *path, char *journal, char *timeFormat, int shouldDebug debug("Writing %s\\n to %s", date, path); fprintf(file, "%s\n", date); fclose(file); + free(createEntryMessage); } } else { // we just recreate the path to the selected entry // snprintf does not like to have the same variable as input and output so we use a buffer