From: Simon Glass Date: Thu, 27 Oct 2016 23:54:03 +0000 (-0600) Subject: mkimage: Fix missing free() in show_valid_options() X-Git-Tag: v2016.11-rc3~3 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0cd82e255fb0960fd566459b1dbcb54b6b61504d;p=u-boot 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 --- 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; }