diff options
author | John Bailey <rekkanoryo@rekkanoryo.org> | 2008-01-16 06:29:52 +0000 |
---|---|---|
committer | John Bailey <rekkanoryo@rekkanoryo.org> | 2008-01-16 06:29:52 +0000 |
commit | 9d76707c4e67c6f13b43acf089d7e0caa603f49b (patch) | |
tree | f7dc53493346c8d2587c355acb9c524e164f0df2 /libpurple/protocols/yahoo | |
parent | 4ead0d532c835abbcfd381697c8d1173377560fa (diff) | |
download | pidgin-9d76707c4e67c6f13b43acf089d7e0caa603f49b.tar.gz |
Get rid of an unnecessary allocation.
Diffstat (limited to 'libpurple/protocols/yahoo')
-rw-r--r-- | libpurple/protocols/yahoo/yahoo_aliases.c | 3 |
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); } |