summaryrefslogtreecommitdiff
path: root/src/netrc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/netrc.c')
-rw-r--r--src/netrc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/netrc.c b/src/netrc.c
index ae98fa35..e56a7413 100644
--- a/src/netrc.c
+++ b/src/netrc.c
@@ -523,8 +523,11 @@ test_parse_netrc(void)
{
snprintf(errmsg, sizeof(errmsg), "test_parse_netrc: wrong result [%u]. Expected '%s', got '%s'",
i, t->pw_expected, acc->passwd);
+ free_netrc(acc);
return errmsg;
}
+
+ free_netrc(acc);
}
return NULL;