diary

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

commit 45537ba12ef60bd42ca2bd7bf4a7311a048190da
parent df1abe55cadfd73e4c97b65b9213d4b3bb041f66
Author: Andreas Gruhler <agruhl@gmx.ch>
Date:   Sun,  2 Jan 2022 00:52:10 +0100

fix(mem): free fmt_cmd from config file

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

diff --git a/src/diary.c b/src/diary.c @@ -517,6 +517,7 @@ int main(int argc, char** argv) { strcpy(CONFIG.fmt, optarg); break; case 'F': + free(CONFIG.fmt_cmd); // set formatting command CONFIG.fmt_cmd = (char *) calloc(strlen(optarg) + 1, sizeof(char)); strcpy(CONFIG.fmt_cmd, optarg);