[Commits] [SCM] claws branch, gtk3, updated. 4.0.0-283-g0e0a6e17c

wwp at claws-mail.org wwp at claws-mail.org
Fri Oct 1 08:12:22 CEST 2021


The branch, gtk3 has been updated
       via  0e0a6e17c558b565423e52bc38b45d95757f26f7 (commit)
      from  fb466b8a50d9505060b6529e020e9dafac36f1b4 (commit)

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


- Log -----------------------------------------------------------------
commit 0e0a6e17c558b565423e52bc38b45d95757f26f7
Author: wwp <subscript at free.fr>
Date:   Fri Oct 1 08:11:47 2021 +0200

    Fix CID 1492309: resource leaks (due to massive code rewriting yesterday).

diff --git a/src/oauth2.c b/src/oauth2.c
index 21b9f7502..3e8195a7a 100644
--- a/src/oauth2.c
+++ b/src/oauth2.c
@@ -292,30 +292,35 @@ int oauth2_obtain_tokens (Oauth2Service provider, OAUTH2Data *OAUTH2Data, const
 	  uri = g_uri_escape_string (OAUTH2info[i][OA2_REDIRECT_URI], NULL, FALSE);
 	  tmp = g_strconcat (body, "&redirect_uri=", uri, NULL);
 	  g_free(body);
+	  g_free(uri);
 	  body = tmp;
 	}
 	if(OAUTH2info[i][OA2_GRANT_TYPE_ACCESS][0]) {
 	  uri = g_uri_escape_string (OAUTH2info[i][OA2_GRANT_TYPE_ACCESS], NULL, FALSE);
 	  tmp = g_strconcat (body, "&grant_type=", uri, NULL);
 	  g_free(body);
+	  g_free(uri);
 	  body = tmp;
 	}
 	if(OAUTH2info[i][OA2_TENANT][0]) {
 	  uri = g_uri_escape_string (OAUTH2info[i][OA2_TENANT], NULL, FALSE);
 	  tmp = g_strconcat (body, "&tenant=", uri, NULL);
 	  g_free(body);
+	  g_free(uri);
 	  body = tmp;
 	}
 	if(OAUTH2info[i][OA2_SCOPE_FOR_ACCESS][0]) {
 	  uri = g_uri_escape_string (OAUTH2info[i][OA2_SCOPE_FOR_ACCESS], NULL, FALSE);
 	  tmp = g_strconcat (body, "&scope=", uri, NULL);
 	  g_free(body);
+	  g_free(uri);
 	  body = tmp;
 	}
 	if(OAUTH2info[i][OA2_STATE][0]) {
 	  uri = g_uri_escape_string (OAUTH2info[i][OA2_STATE], NULL, FALSE);
 	  tmp = g_strconcat (body, "&state=", uri, NULL);
 	  g_free(body);
+	  g_free(uri);
 	  body = tmp;
 	}
 

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list