From fbf7fe1b01f5271375919d65d20cc0e2fa9c09e8 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 13 Nov 2014 20:45:39 +0100 Subject: [PATCH] fix memory leak --- tools/sanity_check/systemtest.cpp | 1 + 1 file changed, 1 insertion(+) 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; }