commit | 18790eb24743978d071020c7e56032b1a7847e49 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Tue Jun 12 00:05:01 2018 -0600 |
committer | Tom Rini <trini@konsulko.com> | Tue Jun 19 07:31:44 2018 -0400 |
tree | 37b3d2f8be779022f3bc6ed28ce6feb7ebdfb2f7 | |
parent | 198b80c73b79e2e1bb62dcaf95d2ca7c2fcb66fe [diff] |
spi: sandbox: Fix memory leak in sandbox_sf_bind_emul() 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 <sjg@chromium.org>