From: Nathan W. <fac...@us...> - 2004-06-07 05:29:45
|
Update of /cvsroot/gaim/gaim/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20355/src Modified Files: util.c Log Message: memory leaks are bad Index: util.c =================================================================== RCS file: /cvsroot/gaim/gaim/src/util.c,v retrieving revision 1.299 retrieving revision 1.300 diff -u -d -p -r1.299 -r1.300 --- util.c 7 Jun 2004 04:00:59 -0000 1.299 +++ util.c 7 Jun 2004 05:29:36 -0000 1.300 @@ -2384,7 +2384,6 @@ gaim_str_seconds_to_string(guint sec) * URI/URL Functions **************************************************************************/ /* - * XXX - Make this also support extracting a username and password? * Would be nice when dissecting an environmental variable * that specifies proxy information. */ @@ -2429,7 +2428,7 @@ gaim_url_parse(const char *url, char **r *passwd = '\0'; } - url = strdup(at+1); /* move pointer after the @ char */ + url = at+1; /* move pointer after the @ char */ } else { *user = '\0'; *passwd = '\0'; |