From f08f41139845e5711082ff6d178faf5e90eff24e Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sun, 27 Nov 2005 09:30:10 +0000 Subject: (nis_list): Add more free calls in error cases. --- nis/nis_table.c | 1 + 1 file changed, 1 insertion(+) 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) -- cgit 1.4.1