[Commits] [SCM] claws branch, gtk3, updated. 4.0.0-384-gc49e227ed
colin at claws-mail.org
colin at claws-mail.org
Tue Dec 14 08:10:10 UTC 2021
The branch, gtk3 has been updated
via c49e227ed16befa69073bd1b87833937367bce7c (commit)
from 8793b0991909613607289fe1c10ff740c93e3465 (commit)
Summary of changes:
src/oauth2.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
- Log -----------------------------------------------------------------
commit c49e227ed16befa69073bd1b87833937367bce7c
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