mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-12-23 10:21:28 +01:00
temp is assigned the pointer returned by malloc which is used without a NULL check and then never freed. Add a NULL check and ensure temp is freed on all return paths. This issue was found by Smatch. Reviewed-by: Udit Kumar <u-kumar1@ti.com> Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org> Reviewed-by: Nishanth Menon <nm@ti.com> Tested-by: Anshul Dalal <anshuld@ti.com>