[Commits] [SCM] claws branch, master, updated. 3.18.0-301-g37aa87d1b

colin at claws-mail.org colin at claws-mail.org
Tue Dec 14 08:10:25 UTC 2021


The branch, master has been updated
       via  37aa87d1be7ebf8c7094aab29da85ad0213d970a (commit)
      from  38fc56a7f795ed6fa83530aa545a0f1fb68c220b (commit)

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


- Log -----------------------------------------------------------------
commit 37aa87d1be7ebf8c7094aab29da85ad0213d970a
Author: Colin Leroy-Mira <colin.leroy-mira at sigfox.com>
Date:   Tue Dec 14 09:10:01 2021 +0100

    Fix leaks on previous commit

diff --git a/src/oauth2.c b/src/oauth2.c
index 12b1d02c9..19c2a7030 100644
--- a/src/oauth2.c
+++ b/src/oauth2.c
@@ -562,7 +562,7 @@ gint oauth2_authorisation_url (Oauth2Service provider, gchar **url, const gchar
 	  uri = g_uri_escape_string (OAUTH2info[i][OA2_REDIRECT_URI], NULL, FALSE);
 	  tmp = g_strconcat (*url, "&redirect_uri=", uri, NULL);
 	  g_free(*url);
-	  *url = g_strdup(tmp);
+	  *url = tmp;
 	  g_free(uri);
     
 	}  
@@ -570,21 +570,21 @@ gint oauth2_authorisation_url (Oauth2Service provider, gchar **url, const gchar
 	  uri = g_uri_escape_string (OAUTH2info[i][OA2_RESPONSE_TYPE], NULL, FALSE);
 	  tmp = g_strconcat (*url, "&response_type=", uri, NULL);
 	  g_free(*url);
-	  *url = g_strdup(tmp);
+	  *url = tmp;
 	  g_free(uri);
 	}  
 	if(OAUTH2info[i][OA2_SCOPE_FOR_AUTH][0]) {
 	  uri = g_uri_escape_string (OAUTH2info[i][OA2_SCOPE_FOR_AUTH], NULL, FALSE);
 	  tmp = g_strconcat (*url, "&scope=", uri, NULL);
 	  g_free(*url);
-	  *url = g_strdup(tmp);
+	  *url = tmp;
 	  g_free(uri);
 	}  
 	if(OAUTH2info[i][OA2_TENANT][0]) {
 	  uri = g_uri_escape_string (OAUTH2info[i][OA2_TENANT], NULL, FALSE);
 	  tmp = g_strconcat (*url, "&tenant=", uri, NULL);
 	  g_free(*url);
-	  *url = g_strdup(tmp);
+	  *url = tmp;
 g_free(uri);
 	}  
 	if(OAUTH2info[i][OA2_RESPONSE_MODE][0]) {

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list