summaryrefslogtreecommitdiff
path: root/libpurple/protocols/yahoo
diff options
context:
space:
mode:
authorJohn Bailey <rekkanoryo@rekkanoryo.org>2008-01-16 06:29:52 +0000
committerJohn Bailey <rekkanoryo@rekkanoryo.org>2008-01-16 06:29:52 +0000
commit9d76707c4e67c6f13b43acf089d7e0caa603f49b (patch)
treef7dc53493346c8d2587c355acb9c524e164f0df2 /libpurple/protocols/yahoo
parent4ead0d532c835abbcfd381697c8d1173377560fa (diff)
downloadpidgin-9d76707c4e67c6f13b43acf089d7e0caa603f49b.tar.gz
Get rid of an unnecessary allocation.
Diffstat (limited to 'libpurple/protocols/yahoo')
-rw-r--r--libpurple/protocols/yahoo/yahoo_aliases.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libpurple/protocols/yahoo/yahoo_aliases.c b/libpurple/protocols/yahoo/yahoo_aliases.c
index 17693b0fd3..d2ce6bfa4d 100644
--- a/libpurple/protocols/yahoo/yahoo_aliases.c
+++ b/libpurple/protocols/yahoo/yahoo_aliases.c
@@ -254,7 +254,7 @@ yahoo_update_alias(PurpleConnection *gc, const char *who, const char *alias)
cb->gc = gc;
/* Build all the info to make the web request */
- url = g_strdup(yd->jp? YAHOOJP_ALIAS_UPDATE_URL: YAHOO_ALIAS_UPDATE_URL);
+ url = yd->jp? YAHOOJP_ALIAS_UPDATE_URL: YAHOO_ALIAS_UPDATE_URL;
purple_url_parse(url, &webaddress, &inttmp, &webpage, &strtmp, &strtmp);
if (yd->jp) {
@@ -289,7 +289,6 @@ yahoo_update_alias(PurpleConnection *gc, const char *who, const char *alias)
}
g_free(content);
- g_free(url);
g_free(request);
}