char* host = nsnull;
char* host;
wallet_GetHostFile(nsIURI * url, nsString& outHostFile){  outHostFile.Truncate(0);  nsAutoString urlName;  char* host = nsnull;  nsresult rv = url->GetHost(&host);  if (NS_FAILED(rv)) {    return;  }  urlName.AppendWithConversion(host);  nsCRT::free(host);  char* file = nsnull;  rv = url->GetPath(&file);  if (NS_FAILED(rv)) {    return;  }  urlName.AppendWithConversion(file);  nsCRT::free(file);  PRInt32 queryPos = urlName.FindChar('?');  PRInt32 stringEnd = (queryPos == kNotFound) ? urlName.Length() : queryPos;  urlName.Left(outHostFile, stringEnd);}