tests: Fix a memory leak in test_nwrap_initgroups()
authorAndreas Schneider <asn@samba.org>
Wed, 25 Jan 2023 12:23:35 +0000 (13:23 +0100)
committerAndreas Schneider <asn@samba.org>
Wed, 25 Jan 2023 15:41:14 +0000 (16:41 +0100)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Pavel Filipenský <pfilipensky@samba.org>
tests/test_initgroups.c

index 959ae4dfd4c996b51672024afc92e66be52bc586..1ec2220bc2cd14f54f5bf4eca5bcdf3f35bde4d5 100644 (file)
@@ -35,6 +35,7 @@ static void test_nwrap_initgroups(void **state)
                for (i = 0; i < 6; i++) {
                        assert_int_equal(groups1[i], groups2[i]);
                }
+               free(groups2);
        }
 }