[U-Boot] [PATCH 1/1] sandbox: avoid memory leak in os_dirent_ls

sjg at google.com sjg at google.com
Fri Sep 29 21:00:28 UTC 2017


On 21 September 2017 at 04:56, Heinrich Schuchardt <xypron.glpk at gmx.de> wrote:
> Realloc does not free the old memory area if it fails.
>
> Identified by cppcheck.
>
> Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
> ---
>  arch/sandbox/cpu/os.c | 20 ++++++++++++++------
>  1 file changed, 14 insertions(+), 6 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>

Applied to u-boot-dm thanks!


More information about the U-Boot mailing list