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

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

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

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

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

2017-09-21 Thread Heinrich Schuchardt
Realloc does not free the old memory area if it fails. Identified by cppcheck. Signed-off-by: Heinrich Schuchardt --- arch/sandbox/cpu/os.c | 20 ++-- 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/arch/sandbox/cpu/os.c b/arch/sandbox/cpu/os.c index 22d6aab534..c