]> git.baikalelectronics.ru Git - uboot.git/commit
core: ofnode: Fix mem leak in error path
authorMario Six <mario.six@gdsys.cc>
Thu, 4 Oct 2018 07:22:24 +0000 (09:22 +0200)
committerSimon Glass <sjg@chromium.org>
Wed, 14 Nov 2018 17:16:27 +0000 (09:16 -0800)
commit3989a0d712c56186de1f3f7d6b8e083722203a63
tree938390ce9e76c1257bccfaac34a6eab778125d15
parent54d1f588c6b0d5d9d2d9b181e1853104fee756a4
core: ofnode: Fix mem leak in error path

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: 8167e04b09de ("core: Add functions to set properties in live-tree")
Signed-off-by: Mario Six <mario.six@gdsys.cc>
drivers/core/ofnode.c