summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-10-27 17:54:03 -0600
committerTom Rini <trini@konsulko.com>2016-10-31 10:13:18 -0400
commit0cd82e255fb0960fd566459b1dbcb54b6b61504d (patch)
tree68993e2f78b68a4b115a8bc2c1ff8e7d734026d4
parent0a6036da63ebc618204cd5c3d5e8cac833845751 (diff)
mkimage: Fix missing free() in show_valid_options()
The allocated memory should be freed. Fix it. Signed-off-by: Simon Glass <sjg@chromium.org> Reported-by: Coverity (CID: 150963) Reviewed-by: Tom Rini <trini@konsulko.com>
-rw-r--r--tools/mkimage.c1
1 files changed, 1 insertions, 0 deletions
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;
}