From 194f1c77b518494d52fc331ca668298101aa1188 Mon Sep 17 00:00:00 2001 From: Christopher Michael Date: Tue, 28 Apr 2020 11:31:24 -0400 Subject: [PATCH] e_system_main: Fix resource leak Coverity reports a leak here because we are not closing the previously opened file. Fix that. fixes CID1427985 --- src/bin/system/e_system_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/system/e_system_main.c b/src/bin/system/e_system_main.c index 289435fa2..570adc70a 100644 --- a/src/bin/system/e_system_main.c +++ b/src/bin/system/e_system_main.c @@ -38,7 +38,7 @@ _etc_enlightenment_system_conf_check(const char *sys) if (gn < 0) { ERR("User %i member of too many groups\n", uid); - return 0; + goto deny; } while (fgets(buf, sizeof(buf), f)) {