[PATCH 1/2] scripts/kwbimage: Fix resource leak in image_create()
Sascha Hauer
s.hauer at pengutronix.de
Tue Feb 4 02:21:26 EST 2014
On Mon, Feb 03, 2014 at 10:50:49PM +0400, Alexander Shiyan wrote:
> Signed-off-by: Alexander Shiyan <shc_work at mail.ru>
Applied both, thanks
Sascha
> ---
> scripts/kwbimage.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/scripts/kwbimage.c b/scripts/kwbimage.c
> index cd87456..c085d4d 100644
> --- a/scripts/kwbimage.c
> +++ b/scripts/kwbimage.c
> @@ -1343,6 +1343,7 @@ static int image_create(const char *input, const char *output,
> rewind(fcfg);
>
> ret = image_create_config_parse(fcfg, image_cfg, &cfgn);
> + fclose(fcfg);
> if (ret) {
> free(image_cfg);
> return -1;
> --
> 1.8.3.2
>
>
> _______________________________________________
> barebox mailing list
> barebox at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
>
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
More information about the barebox
mailing list