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