# HG changeset patch # User John Bailey # Date 1200464992 0 # Node ID a6715d41e06290f5f1d31d1fcc6aa6ef3c64b16b # Parent 392bfb84d372c5c226bdb69db55a1848a2d07144 Get rid of an unnecessary allocation. diff -r 392bfb84d372 -r a6715d41e062 libpurple/protocols/yahoo/yahoo_aliases.c --- a/libpurple/protocols/yahoo/yahoo_aliases.c Tue Jan 15 19:33:20 2008 +0000 +++ b/libpurple/protocols/yahoo/yahoo_aliases.c Wed Jan 16 06:29:52 2008 +0000 @@ -254,7 +254,7 @@ 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 @@ } g_free(content); - g_free(url); g_free(request); }