9
0
Fork 0

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:
Alexander Shiyan 2014-02-03 22:50:49 +04:00 committed by Sascha Hauer
parent 1debe41a93
commit 84f715cb8c
1 changed files with 1 additions and 0 deletions

View File

@ -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;