projects
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a6036d
)
mkimage: Fix missing free() in show_valid_options()
author
Simon Glass
<sjg@chromium.org>
Thu, 27 Oct 2016 23:54:03 +0000
(17:54 -0600)
committer
Tom Rini
<trini@konsulko.com>
Mon, 31 Oct 2016 14:13:18 +0000
(10:13 -0400)
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>
tools/mkimage.c
patch
|
blob
|
history
diff --git
a/tools/mkimage.c
b/tools/mkimage.c
index
02f88bb
..
0c6dba8
100644
(file)
--- 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;
}