(nis_list): Add more free calls in error cases.
This commit is contained in:
parent
0af1870a5c
commit
f08f411398
@ -343,6 +343,7 @@ nis_list (const_nis_name name, unsigned int flags,
|
|||||||
res = calloc (1, sizeof (nis_result));
|
res = calloc (1, sizeof (nis_result));
|
||||||
if (res == NULL || ibreq->ibr_name == NULL)
|
if (res == NULL || ibreq->ibr_name == NULL)
|
||||||
{
|
{
|
||||||
|
free (ibreq->ibr_name);
|
||||||
free (res);
|
free (res);
|
||||||
nis_free_request (ibreq);
|
nis_free_request (ibreq);
|
||||||
if (have_tablepath)
|
if (have_tablepath)
|
||||||
|
Loading…
Reference in New Issue
Block a user