[prev in list] [next in list] [prev in thread] [next in thread]
List: apparmor-dev
Subject: Re: [apparmor] [patch 10/18] parser: close file handle left opened
From: John Johansen <john.johansen () canonical ! com>
Date: 2014-01-24 10:46:50
Message-ID: 52E2449A.4050601 () canonical ! com
[Download RAW message or body]
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@nxnw.org>
Acked-by: John Johansen <john.johansen@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@lists.ubuntu.com Modify settings or unsubscribe \
> at: https://lists.ubuntu.com/mailman/listinfo/apparmor
--
AppArmor mailing list
AppArmor@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/apparmor
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic