summaryrefslogtreecommitdiff
path: root/tools/sanity_check
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2014-11-13 20:45:39 +0100
committerRobin Gareus <robin@gareus.org>2014-11-13 20:45:39 +0100
commitfbf7fe1b01f5271375919d65d20cc0e2fa9c09e8 (patch)
treec31fcb2af2c598e197d8f3eef7a9e108bdb80445 /tools/sanity_check
parentcb3803433491abfe7c58742dbe7801591b21694a (diff)
fix memory leak
Diffstat (limited to 'tools/sanity_check')
-rw-r--r--tools/sanity_check/systemtest.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/sanity_check/systemtest.cpp b/tools/sanity_check/systemtest.cpp
index 025eb0ef25..b7c04a2031 100644
--- a/tools/sanity_check/systemtest.cpp
+++ b/tools/sanity_check/systemtest.cpp
@@ -169,6 +169,7 @@ int system_user_in_group(const char *name) {
gid = get_group_by_name(name);
if (0==gid) {
fprintf(stderr, "No %s group found\n", name);
+ free(list);
return 0;
}