git.samba.org
/
nss_wrapper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
tests: Fix a memory leak in test_nwrap_initgroups()
[nss_wrapper.git]
/
tests
/
test_initgroups.c
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);
}
}