char *path = (char *)alloca (strlen (home) + 1
+ strlen (NETRC_FILE_NAME) + 1);
sprintf (path, "%s/%s", home, NETRC_FILE_NAME);
- free (home);
+ xfree (home);
err = stat (path, &buf);
if (err == 0)
netrc_list = parse_netrc (path);
}
if (c == EOF && !i)
{
- free(line);
+ xfree(line);
return NULL;
}
if (a && ! a->acc)
{
/* Free any allocated space. */
- free (a->host);
- free (a->acc);
- free (a->passwd);
+ xfree (a->host);
+ xfree (a->acc);
+ xfree (a->passwd);
}
else
{
}
}
- free (line);
+ xfree (line);
}
fclose (fp);
/* Finalize the last machine entry we found. */
maybe_add_to_list (¤t, &retval);
- free (current);
+ xfree (current);
/* Reverse the order of the list so that it appears in file order. */
current = retval;
FREE_MAYBE (l->acc);
FREE_MAYBE (l->passwd);
FREE_MAYBE (l->host);
- free(l);
+ xfree (l);
l = t;
}
}