e_system_main: Fix resource leak

Coverity reports a leak here because we are not closing the previously
opened file. Fix that.

fixes CID1427985
enlightenment-0.24
Christopher Michael 3 years ago
parent 2305f7a273
commit 194f1c77b5
  1. 2
      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))
{

Loading…
Cancel
Save