diary

Text-based journaling program
git clone https://git.in0rdr.ch/diary.git
Log | Files | Refs | README | LICENSE

commit 449224331846fd958f594a84159f843f5fc8678f
parent 9044f058793153acf4064658cefb8dd99e98c8a1
Author: Andreas Gruhler <agruhl@gmx.ch>
Date:   Tue, 23 Nov 2021 11:35:23 +0100

fix mem: free definitely lost blocks

Diffstat:
Msrc/diary.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/diary.c b/src/diary.c @@ -416,9 +416,11 @@ int main(int argc, char** argv) { closedir(diary_dir_ptr); } else if (errno == ENOENT) { fprintf(stderr, "The directory '%s' does not exist\n", CONFIG.dir); + free(config_file_path); return 2; } else { fprintf(stderr, "The directory '%s' could not be opened\n", CONFIG.dir); + free(config_file_path); return 1; }