projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a41f621
)
test: free after use
author
Yu Watanabe
<watanabe.yu+github@gmail.com>
Wed, 10 Jan 2018 01:24:06 +0000
(10:24 +0900)
committer
Yu Watanabe
<watanabe.yu+github@gmail.com>
Wed, 10 Jan 2018 11:52:51 +0000
(20:52 +0900)
CID 1384238.
src/test/test-socket-util.c
patch
|
blob
|
history
diff --git
a/src/test/test-socket-util.c
b/src/test/test-socket-util.c
index
201ce66
..
5b1574e
100644
(file)
--- a/
src/test/test-socket-util.c
+++ b/
src/test/test-socket-util.c
@@
-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;