This also fixes the pointer assigned to the gr_mem element of struct group. Fixes a bug introduced by 47fd7fa6. Fixes #21935. (cherry picked from commit 1e65eb8f) (cherry picked from commit 17227e81)
mentioned in commit 477e5328