[Commits] [SCM] claws branch, master, updated. 4.3.1-33-ge483717e6

wwp at claws-mail.org wwp at claws-mail.org
Fri Mar 7 13:06:50 UTC 2025


The branch, master has been updated
       via  e483717e6c13c883c410c6382c98ecd912f68956 (commit)
      from  3e1c1a122f72827d5be12bb33e091045c2e3cacd (commit)

Summary of changes:
 src/oauth2.c | 2 ++
 1 file changed, 2 insertions(+)


- Log -----------------------------------------------------------------
commit e483717e6c13c883c410c6382c98ecd912f68956
Author: wwp <subscript at free.fr>
Date:   Fri Mar 7 14:06:31 2025 +0100

    Fix CID 1642780: Resource leak (and potential password leak)

diff --git a/src/oauth2.c b/src/oauth2.c
index eccdd49d8..79883d4a2 100644
--- a/src/oauth2.c
+++ b/src/oauth2.c
@@ -688,6 +688,8 @@ gint oauth2_check_passwds (PrefsAccount *ac_prefs)
 		log_message(LOG_PROTOCOL, _("OAuth2 access and refresh token updated\n"));  
 	}
 
+	memset(OAUTH2Data->refresh_token, 0, strlen(OAUTH2Data->refresh_token));
+	g_free(OAUTH2Data->refresh_token);
 	g_free(OAUTH2Data);
 	g_free(uid);
 	

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list