diff --git a/nsswitch/nsstest.c b/nsswitch/nsstest.c index 45270cdc459..21d04b53126 100644 --- a/nsswitch/nsstest.c +++ b/nsswitch/nsstest.c @@ -395,6 +395,7 @@ static void nss_test_initgroups(char *name, gid_t gid) printf("%lu, ", (unsigned long)groups[i]); } printf("%lu\n", (unsigned long)groups[i]); + SAFE_FREE(groups); }