(nis_list): Add more free calls in error cases.

This commit is contained in:
Ulrich Drepper 2005-11-27 09:30:10 +00:00
parent 0af1870a5c
commit f08f411398
1 changed files with 1 additions and 0 deletions

View File

@ -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)