git.samba.org
/
nss_wrapper.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
baa8dad
)
tests: Fix a memory leak in test_nwrap_initgroups()
author
Andreas Schneider
<asn@samba.org>
Wed, 25 Jan 2023 12:23:35 +0000
(13:23 +0100)
committer
Andreas 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
patch
|
blob
|
history
diff --git
a/tests/test_initgroups.c
b/tests/test_initgroups.c
index 959ae4dfd4c996b51672024afc92e66be52bc586..1ec2220bc2cd14f54f5bf4eca5bcdf3f35bde4d5 100644
(file)
--- a/
tests/test_initgroups.c
+++ b/
tests/test_initgroups.c
@@
-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);
}
}