From: Simon Glass Date: Mon, 31 Oct 2016 10:13:05 -0600 Subject: [U-Boot] [PATCH v4 1/2] mkimage: Fix missing free() in show_valid_options() Message-ID: <1477930386-25328-1-git-send-email-sjg@chromium.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de The allocated memory should be freed. Fix it. Signed-off-by: Simon Glass Reported-by: Coverity (CID: 150963) Reviewed-by: Tom Rini --- Changes in v4: None Changes in v3: None Changes in v2: None 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