aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2023-01-01 12:43:29 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-01-01 12:43:29 +0100
commitd4618f642942647a22ce306273d72234540ccbc1 (patch)
treeb92daf09bdc1dea5d2ad0e7b038283a5596db409 /utils
parentca4060154f5fa70e2fc140df4a0dee24ea15ba6a (diff)
downloadhurd-d4618f642942647a22ce306273d72234540ccbc1.tar.gz
hurd-d4618f642942647a22ce306273d72234540ccbc1.tar.bz2
hurd-d4618f642942647a22ce306273d72234540ccbc1.zip
nonsugid: Fix memleak
Diffstat (limited to 'utils')
-rw-r--r--utils/nonsugid.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/utils/nonsugid.c b/utils/nonsugid.c
index 15b1f777..2803f87e 100644
--- a/utils/nonsugid.c
+++ b/utils/nonsugid.c
@@ -56,6 +56,11 @@ get_nonsugid_ids (struct idvec *uids, struct idvec *gids)
}
mach_port_deallocate (mach_task_self (), auth);
+ if (p_eff_uids)
+ idvec_free (p_eff_uids);
+ if (p_eff_gids)
+ idvec_free (p_eff_gids);
+
return err;
}
else