diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-01-01 12:43:29 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-01-01 12:43:29 +0100 |
commit | d4618f642942647a22ce306273d72234540ccbc1 (patch) | |
tree | b92daf09bdc1dea5d2ad0e7b038283a5596db409 /utils | |
parent | ca4060154f5fa70e2fc140df4a0dee24ea15ba6a (diff) | |
download | hurd-d4618f642942647a22ce306273d72234540ccbc1.tar.gz hurd-d4618f642942647a22ce306273d72234540ccbc1.tar.bz2 hurd-d4618f642942647a22ce306273d72234540ccbc1.zip |
nonsugid: Fix memleak
Diffstat (limited to 'utils')
-rw-r--r-- | utils/nonsugid.c | 5 |
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 |