X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=src%2Fnetrc.c;h=1e12d1deddba24c73086e2abd841a598b1200037;hp=a31e07960956f9c909f5830c436f0a5c63e9446d;hb=38a7829dcb4eb5dba28dbf0f05c6a80fea9217f8;hpb=351e438e5109856d8e97af19583e655aa2f1bb4c diff --git a/src/netrc.c b/src/netrc.c index a31e0796..1e12d1de 100644 --- a/src/netrc.c +++ b/src/netrc.c @@ -44,10 +44,16 @@ as that of the covered work. */ #define NETRC_FILE_NAME ".netrc" -acc_t *netrc_list; +static acc_t *netrc_list; static acc_t *parse_netrc (const char *); +void +netrc_cleanup(void) +{ + free_netrc (netrc_list); +} + /* Return the correct user and password, given the host, user (as given in the URL), and password (as given in the URL). May return NULL.