From 0cd82e255fb0960fd566459b1dbcb54b6b61504d Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Thu, 27 Oct 2016 17:54:03 -0600 Subject: [PATCH] mkimage: Fix missing free() in show_valid_options() The allocated memory should be freed. Fix it. Signed-off-by: Simon Glass Reported-by: Coverity (CID: 150963) Reviewed-by: Tom Rini --- tools/mkimage.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/mkimage.c b/tools/mkimage.c index 02f88bb983..0c6dba89a0 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.39.5