mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-09-05 00:35:13 +00:00
parser: close file handle left opened
Close file handle left opened if parser.cfg is found and read from. Found by cppcheck. Signed-off-by: Steve Beattie <steve@nxnw.org> Acked-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
@@ -611,6 +611,7 @@ static int process_config_file(const char *name)
|
||||
|
||||
while ((c = getopt_long_file(f, long_options, &optarg, &o)) != -1)
|
||||
process_arg(c, optarg);
|
||||
fclose(f);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user