aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2005-11-27 09:30:10 +0000
committerUlrich Drepper <drepper@redhat.com>2005-11-27 09:30:10 +0000
commitf08f41139845e5711082ff6d178faf5e90eff24e (patch)
treed48167d547a495f3b688c56ce68dedff15bd5240
parent0af1870a5cef686b3fc40a620ba16e886888feeb (diff)
downloadglibc-f08f41139845e5711082ff6d178faf5e90eff24e.tar
glibc-f08f41139845e5711082ff6d178faf5e90eff24e.tar.gz
glibc-f08f41139845e5711082ff6d178faf5e90eff24e.tar.bz2
glibc-f08f41139845e5711082ff6d178faf5e90eff24e.zip
(nis_list): Add more free calls in error cases.
-rw-r--r--nis/nis_table.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/nis/nis_table.c b/nis/nis_table.c
index abe47d09c1..cfa7cef350 100644
--- a/nis/nis_table.c
+++ b/nis/nis_table.c
@@ -343,6 +343,7 @@ nis_list (const_nis_name name, unsigned int flags,
res = calloc (1, sizeof (nis_result));
if (res == NULL || ibreq->ibr_name == NULL)
{
+ free (ibreq->ibr_name);
free (res);
nis_free_request (ibreq);
if (have_tablepath)