sandbox: os: add_image: fix memory leak
devname is strdup'd few lines later, so remove the earlier strdup.
The pointer isn't stored anywhere persistent in between.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 1c5ebfc commit 90f96b39cd851df684ec8d6a0c0d508c2503003f
@Ahmad Fatoum Ahmad Fatoum authored on 2 Jun 2020
Sascha Hauer committed on 3 Jun 2020
Showing 1 changed file
View
arch/sandbox/os/common.c