summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--journal.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/journal.c b/journal.c
index 39354fd..c7bd9ba 100644
--- a/journal.c
+++ b/journal.c
@@ -37,6 +37,7 @@ static void print_entry(char *entry)
memcpy(path, ENTRY_DIR"/", sizeof(ENTRY_DIR));
memcpy(path + sizeof(ENTRY_DIR), entry, len);
FILE *f = fopen(path, "r");
+ free(path);
if (!f) return;
char date[11];