[U-Boot] [PATCH V2] common: cli_hush: avoid memory leak

Simon Glass sjg at chromium.org
Fri Nov 27 03:52:01 CET 2015


On 26 November 2015 at 18:12, Peng Fan <Peng.Fan at freescale.com> wrote:
> Need to free memory avoid memory leak, when error.
>
> Signed-off-by: Peng Fan <Peng.Fan at freescale.com>
> Reviewed-by: Simon Glass <sjg at chromium.org>
> Cc: Simon Glass <sjg at chromium.org>
> Cc: Tom Rini <trini at konsulko.com>
> ---
>
> Changes V2:
>  Take Simon's comments, fix another memory leak when child->argv is NULL.
>  Add Simon's review tag.
>
>  common/cli_hush.c | 9 +++++++--
>  1 file changed, 7 insertions(+), 2 deletions(-)

Looks good!

- Simon


More information about the U-Boot mailing list