diff options
author | Eduardo Chappa <chappa@washington.edu> | 2021-08-23 21:16:46 -0600 |
---|---|---|
committer | Eduardo Chappa <chappa@washington.edu> | 2021-08-23 21:16:46 -0600 |
commit | 8961761e0b3c7b3cc11a00f6ac6ebf7a29bc5a10 (patch) | |
tree | 277ebcf5150a1950dbd4deacb82cd89fbd9ce83f /imap/src/c-client/auth_oa2.c | |
parent | e9b3f2043f7d309ecc58b907ff17d561ff972698 (diff) | |
download | alpine-8961761e0b3c7b3cc11a00f6ac6ebf7a29bc5a10.tar.xz |
* Fix some memory leaks reported by Valgrind.
Diffstat (limited to 'imap/src/c-client/auth_oa2.c')
-rw-r--r-- | imap/src/c-client/auth_oa2.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/imap/src/c-client/auth_oa2.c b/imap/src/c-client/auth_oa2.c index 7fb30542..2f52c4f2 100644 --- a/imap/src/c-client/auth_oa2.c +++ b/imap/src/c-client/auth_oa2.c @@ -174,5 +174,8 @@ long auth_oauth2_client (authchallenge_t challenger,authrespond_t responder, cha if(oauth2.param[OA2_Id].value) fs_give((void **) &oauth2.param[OA2_Id].value); if(oauth2.param[OA2_Secret].value) fs_give((void **) &oauth2.param[OA2_Secret].value); if(oauth2.param[OA2_Tenant].value) fs_give((void **) &oauth2.param[OA2_Tenant].value); + if(oauth2.param[OA2_State].value) fs_give((void **) &oauth2.param[OA2_State].value); + if(oauth2.param[OA2_RefreshToken].value) fs_give((void **) &oauth2.param[OA2_RefreshToken].value); + if(oauth2.access_token) fs_give((void **) &oauth2.access_token); return ret; } |