mirror of
https://github.com/tomasriveral/NoteWrapper.git
synced 2026-10-10 17:03:04 +02:00
fixed small memory leak
This commit is contained in:
1 parent
6ac2c71ee4
commit
44100c49d1
1 file changed
+1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user