Re: [U-Boot] [PATCH 7/8] spi: sandbox: Fix memory leak in sandbox_sf_bind_emul()

2018-06-11 Thread Simon Glass
Hi Heinrich, On 10 June 2018 at 05:35, Simon Glass wrote: > Hi Heinrich, > > On 9 June 2018 at 11:54, Heinrich Schuchardt wrote: >> On 06/09/2018 08:22 PM, Simon Glass wrote: >>> Move the strdup() call so that it is only done when we know we will bind >>> the device. >>> >>> Reported-by: Coverit

Re: [U-Boot] [PATCH 7/8] spi: sandbox: Fix memory leak in sandbox_sf_bind_emul()

2018-06-10 Thread Simon Glass
Hi Heinrich, On 9 June 2018 at 11:54, Heinrich Schuchardt wrote: > On 06/09/2018 08:22 PM, Simon Glass wrote: >> Move the strdup() call so that it is only done when we know we will bind >> the device. >> >> Reported-by: Coverity (CID: 131216) >> >> Signed-off-by: Simon Glass >> --- >> >> driver

Re: [U-Boot] [PATCH 7/8] spi: sandbox: Fix memory leak in sandbox_sf_bind_emul()

2018-06-09 Thread Heinrich Schuchardt
On 06/09/2018 08:22 PM, Simon Glass wrote: > Move the strdup() call so that it is only done when we know we will bind > the device. > > Reported-by: Coverity (CID: 131216) > > Signed-off-by: Simon Glass > --- > > drivers/mtd/spi/sandbox.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deleti

[U-Boot] [PATCH 7/8] spi: sandbox: Fix memory leak in sandbox_sf_bind_emul()

2018-06-09 Thread Simon Glass
Move the strdup() call so that it is only done when we know we will bind the device. Reported-by: Coverity (CID: 131216) Signed-off-by: Simon Glass --- drivers/mtd/spi/sandbox.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/mtd/spi/sandbox.c b/drivers/mtd/sp