From 36f3a7296943022abe94ded17a0cae82614f35ab Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 10 Jun 1997 20:30:51 +0000 Subject: First step towards netrc fix. svn path=/trunk/; revision=1078 --- netrc.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'netrc.c') 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 { -- cgit v1.2.3