[apparmor] [patch 10/18] parser: close file handle left opened
John Johansen
john.johansen at canonical.com
Fri Jan 24 10:46:50 UTC 2014
On 01/16/2014 02:06 PM, Steve Beattie wrote:
> Close file handle left opened if parser.cfg is found and read from.
> Found by cppcheck.
>
> Signed-off-by: Steve Beattie <steve at nxnw.org>
Acked-by: John Johansen <john.johansen at canonical.com>
> ---
> parser/parser_main.c | 1 +
> 1 file changed, 1 insertion(+)
>
> Index: b/parser/parser_main.c
> ===================================================================
> --- a/parser/parser_main.c
> +++ b/parser/parser_main.c
> @@ -602,6 +602,7 @@ static int process_config_file(const cha
>
> while ((c = getopt_long_file(f, long_options, &optarg, &o)) != -1)
> process_arg(c, optarg);
> + fclose(f);
> return 1;
> }
>
>
>
> -- AppArmor mailing list AppArmor at lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/apparmor
>
More information about the AppArmor
mailing list