nis: Fix a memory leak in nis_creategroup when malloc fails

The zo_domain field was missing from the list of fields to be freed.

Reviewed-by: DJ Delorie <dj@redhat.com>
This commit is contained in:
Jiri Stransky
2026-06-25 11:21:14 -03:00
committed by Adhemerval Zanella
parent 21103aef12
commit 96773cc77b
+1
View File
@@ -60,6 +60,7 @@ nis_creategroup (const_nis_name group, unsigned int flags)
free (obj->zo_group); free (obj->zo_group);
free (obj->zo_owner); free (obj->zo_owner);
free (obj->zo_name); free (obj->zo_name);
free (obj->zo_domain);
free (obj); free (obj);
return NIS_NOMEMORY; return NIS_NOMEMORY;
} }