[Commits] [SCM] claws branch, master, updated. 3.18.0-225-g47c129334

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


The branch, master has been updated
       via  47c129334fb334d3eb43c558b69392ca61bc0163 (commit)
      from  b3bc30c4a5e120a0907ffc2a70680efd43d89330 (commit)

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


- Log -----------------------------------------------------------------
commit 47c129334fb334d3eb43c558b69392ca61bc0163
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