aboutsummaryrefslogtreecommitdiff
path: root/libshouldbeinlibc
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2023-01-01 12:15:49 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-01-01 12:22:02 +0100
commita628d3fc5de464b3a606c339653a0f9fbdfa4f3e (patch)
tree5e1111425fcf04518287787ffb23160ce1676b5f /libshouldbeinlibc
parent47d48b9cdcaa21fb865112f501bb6472c61c084f (diff)
downloadhurd-a628d3fc5de464b3a606c339653a0f9fbdfa4f3e.tar.gz
hurd-a628d3fc5de464b3a606c339653a0f9fbdfa4f3e.tar.bz2
hurd-a628d3fc5de464b3a606c339653a0f9fbdfa4f3e.zip
_merge_implied_gids: Fix memleak on error
Diffstat (limited to 'libshouldbeinlibc')
-rw-r--r--libshouldbeinlibc/idvec-impgids.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libshouldbeinlibc/idvec-impgids.c b/libshouldbeinlibc/idvec-impgids.c
index d89f4873..c5800b6a 100644
--- a/libshouldbeinlibc/idvec-impgids.c
+++ b/libshouldbeinlibc/idvec-impgids.c
@@ -93,6 +93,8 @@ _merge_implied_gids (struct idvec *implied_gids, uid_t uid)
else
idvec_free (cache);
}
+ else if (cache)
+ idvec_free (cache);
}
return err;