Re: [U-Boot] [PATCH v2 1/1] tools/env: avoid memory leak in fw_setenv

2017-04-16 Thread Simon Glass
On 15 April 2017 at 05:05, Heinrich Schuchardt wrote: > If realloc fails we should release the old buffer. > > Signed-off-by: Heinrich Schuchardt > --- > v2: > Initial mail was garbled. > --- > tools/env/fw_env.c | 3 +++ > 1 file changed, 3 insertions(+) Reviewed-by: Simon Glass ___

Re: [U-Boot] [PATCH v2 1/1] tools/env: avoid memory leak in fw_setenv

2017-04-15 Thread Tom Rini
On Sat, Apr 15, 2017 at 01:05:40PM +0200, Heinrich Schuchardt wrote: > If realloc fails we should release the old buffer. > > Signed-off-by: Heinrich Schuchardt Reviewed-by: Tom Rini -- Tom signature.asc Description: Digital signature ___ U-Boot

[U-Boot] [PATCH v2 1/1] tools/env: avoid memory leak in fw_setenv

2017-04-15 Thread Heinrich Schuchardt
If realloc fails we should release the old buffer. Signed-off-by: Heinrich Schuchardt --- v2: Initial mail was garbled. --- tools/env/fw_env.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/env/fw_env.c b/tools/env/fw_env.c index 862a0b1a02..31c18d73bc 100644 --- a/tools/env/fw_e