]> git.sur5r.net Git - u-boot/commitdiff
mkimage: Fix missing free() in show_valid_options()
authorSimon Glass <sjg@chromium.org>
Thu, 27 Oct 2016 23:54:03 +0000 (17:54 -0600)
committerTom 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

index 02f88bb983beaaf95583d4239714e0cf60b93532..0c6dba89a099a32ff97ccfe04906e9344b6b3ab9 100644 (file)
@@ -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;
 }