[PATCH 1/2] scripts/kwbimage: Fix resource leak in image_create()
Alexander Shiyan
shc_work at mail.ru
Mon Feb 3 13:50:49 EST 2014
Signed-off-by: Alexander Shiyan <shc_work at mail.ru>
---
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
More information about the barebox
mailing list