[Commits] [SCM] claws branch, master, updated. 3.18.0-325-g9171e908b

colin at claws-mail.org colin at claws-mail.org
Mon Jan 3 08:43:34 UTC 2022


The branch, master has been updated
       via  9171e908bb3371ea57218ed5d726a3d090392c6b (commit)
      from  b7792aad0de10bd477e3b3ff936a3a915cdd2067 (commit)

Summary of changes:
 src/oauth2.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)


- Log -----------------------------------------------------------------
commit 9171e908bb3371ea57218ed5d726a3d090392c6b
Author: Colin Leroy <colin at colino.net>
Date:   Mon Jan 3 09:43:28 2022 +0100

    Fix CID 1495421 and 1495420

diff --git a/src/oauth2.c b/src/oauth2.c
index 19c2a7030..3be59ddb4 100644
--- a/src/oauth2.c
+++ b/src/oauth2.c
@@ -585,23 +585,22 @@ gint oauth2_authorisation_url (Oauth2Service provider, gchar **url, const gchar
 	  tmp = g_strconcat (*url, "&tenant=", uri, NULL);
 	  g_free(*url);
 	  *url = tmp;
-g_free(uri);
+	  g_free(uri);
 	}  
 	if(OAUTH2info[i][OA2_RESPONSE_MODE][0]) {
 	  uri = g_uri_escape_string (OAUTH2info[i][OA2_RESPONSE_MODE], NULL, FALSE);
 	  tmp = g_strconcat (*url, "&response_mode=", uri, NULL);
 	  g_free(*url);
-	  *url = g_strdup(tmp);
+	  *url = tmp;
 	  g_free(uri);
 	}  
 	if(OAUTH2info[i][OA2_STATE][0]) {
 	  uri = g_uri_escape_string (OAUTH2info[i][OA2_STATE], NULL, FALSE);
 	  tmp = g_strconcat (*url, "&state=", uri, NULL);
 	  g_free(*url);
-	  *url = g_strdup(tmp);
+	  *url = tmp;
 	  g_free(uri);
 	}  
-	g_free(tmp);
 
 	return (0);
 }

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list