diary

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

commit a06a5ce0caae2bbe8f14ae8e542407aaacd36c91
parent b8b6dc73d81ff0bdef0903403de9845b85b7ad2e
Author: Andreas Gruhler <andreas.gruhler@adfinis.com>
Date:   Sat, 25 Mar 2023 13:09:50 +0100

fix(caldav): free token_resp memory

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

diff --git a/src/caldav.c b/src/caldav.c @@ -240,10 +240,10 @@ void get_access_token(char* code, char* verifier, bool refresh) { update_tokenfile_from_global_vars(); } else { tracepoint(diary, error_string, "curl_easy_perform() failed in get_access_token()", curl_easy_strerror(res)); - return; } } + free(token_resp.memory); free(postfields); }