From: Ulrich Drepper Date: Sun, 27 Nov 2005 09:30:10 +0000 (+0000) Subject: (nis_list): Add more free calls in error cases. X-Git-Tag: cvs/fedora-glibc-20051219T1003~70 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f08f41139845e5711082ff6d178faf5e90eff24e;p=platform%2Fupstream%2Fglibc.git (nis_list): Add more free calls in error cases. --- diff --git a/nis/nis_table.c b/nis/nis_table.c index abe47d0..cfa7cef 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)