aboutsummaryrefslogtreecommitdiffstats
path: root/netrc.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-06-10 20:30:51 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-06-10 20:30:51 +0000
commit36f3a7296943022abe94ded17a0cae82614f35ab (patch)
tree78131a3a79377b931f87734968904a5f458b6a28 /netrc.c
parentb84a4e366013cb3b1eddd4a8b4a8a27cd3bda5cf (diff)
downloadfetchmail-36f3a7296943022abe94ded17a0cae82614f35ab.tar.gz
fetchmail-36f3a7296943022abe94ded17a0cae82614f35ab.tar.bz2
fetchmail-36f3a7296943022abe94ded17a0cae82614f35ab.zip
First step towards netrc fix.
svn path=/trunk/; revision=1078
Diffstat (limited to 'netrc.c')
-rw-r--r--netrc.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/netrc.c b/netrc.c
index a56dfd7b..b95d134d 100644
--- a/netrc.c
+++ b/netrc.c
@@ -51,9 +51,10 @@ maybe_add_to_list (newentry, list)
if (a && ! a->account)
{
/* Free any allocated space. */
- free (a->host);
- free (a->account);
- free (a->password);
+ if (a->host)
+ free (a->host);
+ if (a->password)
+ free (a->password);
}
else
{