test: free after use

CID 1384238.
This commit is contained in:
Yu Watanabe 2018-01-10 10:24:06 +09:00
parent a41f6217ba
commit 78e2f089fd

View file

@ -487,7 +487,7 @@ static void test_getpeercred_getpeergroups(void) {
if (r == 0) {
static const gid_t gids[] = { 3, 4, 5, 6, 7 };
gid_t *test_gids;
gid_t *peer_groups = NULL;
_cleanup_free_ gid_t *peer_groups = NULL;
size_t n_test_gids;
uid_t test_uid;
gid_t test_gid;