[U-Boot] [PATCH] core: ofnode: Fix mem leak in error path
sjg at google.com
sjg at google.com
Mon Oct 15 20:04:36 UTC 2018
A newly created property is currently not freed if a name could not be
allocated. This patch fixes the resulting memory leak in the error
patch.
Reported-by: Coverity (CID: 184085)
Fixes: e369e58df79c ("core: Add functions to set properties in live-tree")
Signed-off-by: Mario Six <mario.six at gdsys.cc>
---
drivers/core/ofnode.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
Applied to u-boot-dm, thanks!
More information about the U-Boot
mailing list