[Commits] [SCM] claws branch, gtk3, updated. 4.0.0-396-g3b2fc511f

colin at claws-mail.org colin at claws-mail.org
Mon Jan 3 08:44:02 UTC 2022


The branch, gtk3 has been updated
       via  3b2fc511f130933391dc32312d2cf6c8dbfe41a8 (commit)
      from  28b9c8e65997b22d0d0c89ea5af000ad5edc5468 (commit)

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


- Log -----------------------------------------------------------------
commit 3b2fc511f130933391dc32312d2cf6c8dbfe41a8
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