Fix coverity issue: CID 2970630: Resource leak (RESOURCE_LEAK) leaked_storage: Variable cdns going out of scope leaks the storage it points to. Memory allocated by devm_kzalloc() won't be freed automatically in u-boot, free the memory manually here. Test: Coverity scan pass. Change-Id: I3000a2385941cef3b8b7e01611cfdc999971a4ca Signed-off-by: Luo Ji <ji.luo@nxp.com> |
||
|---|---|---|
| .. | ||
| Kconfig | ||
| Makefile | ||
| cdns3-nxp-reg-def.h | ||
| core.c | ||
| core.h | ||
| dev-regs-macro.h | ||
| dev-regs-map.h | ||
| gadget-export.h | ||
| gadget.c | ||
| gadget.h | ||
| io.h | ||
| linux-compat.h | ||