commit | fb95283931011aef78d885f2799ad9d7367f4e48 | [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 | 8a682e03d7d18b3d20810ea83fcec69f8d09c909 [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>