diary

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

commit 31c83f59ebae8102e149634340fd1fe541ce0837
parent e75cbc27e901841a9297ce4eed3100b9668e797d
Author: Andreas Gruhler <agruhl@gmx.ch>
Date:   Sun,  4 Jul 2021 18:32:15 +0200

free tokfile after fprintf

Diffstat:
Msrc/caldav.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/caldav.c b/src/caldav.c @@ -154,12 +154,13 @@ void write_tokenfile() { chmod(tokenfile_path, S_IRUSR|S_IWUSR); perror("chmod"); + char* tokfile = read_tokenfile(); - free(tokfile); fprintf(stderr, "New tokenfile contents: %s\n", tokfile); fprintf(stderr, "New Access token: %s\n", access_token); fprintf(stderr, "New Token TTL: %i\n", token_ttl); fprintf(stderr, "Refresh token: %s\n", refresh_token); + free(tokfile); } void get_access_token(char* code, char* verifier, bool refresh) {