public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/2] mkimage: Fix missing free() in show_valid_options()
@ 2016-10-26 19:19 Simon Glass
  2016-10-26 19:19 ` [U-Boot] [PATCH 2/2] image: Protect against overflow in unknown_msg() Simon Glass
  2016-10-26 21:49 ` [U-Boot] [PATCH 1/2] mkimage: Fix missing free() in show_valid_options() Tom Rini
  0 siblings, 2 replies; 5+ messages in thread
From: Simon Glass @ 2016-10-26 19:19 UTC (permalink / raw)
  To: u-boot

The allocated memory should be freed. Fix it.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reported-by: Coverity (CID: 150963)
---

 tools/mkimage.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/mkimage.c b/tools/mkimage.c
index 3c594a0..521fa80 100644
--- a/tools/mkimage.c
+++ b/tools/mkimage.c
@@ -64,6 +64,7 @@ static int show_valid_options(enum ih_category category)
 			genimg_get_cat_name(category, item));
 	}
 	fprintf(stderr, "\n");
+	free(order);
 
 	return 0;
 }
-- 
2.8.0.rc3.226.g39d4020

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-10-28  1:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-26 19:19 [U-Boot] [PATCH 1/2] mkimage: Fix missing free() in show_valid_options() Simon Glass
2016-10-26 19:19 ` [U-Boot] [PATCH 2/2] image: Protect against overflow in unknown_msg() Simon Glass
2016-10-26 21:49   ` Tom Rini
2016-10-28  1:51     ` Simon Glass
2016-10-26 21:49 ` [U-Boot] [PATCH 1/2] mkimage: Fix missing free() in show_valid_options() Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox