scripts/kwbimage: Fix resource leak in image_create()
Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
1debe41a93
commit
84f715cb8c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue