of: overlay: fix memory leak related to duplicated property
authorLixin Wang <alan.1.wang@nokia-sbell.com>
Mon, 16 Oct 2017 09:54:32 +0000 (17:54 +0800)
committerRob Herring <robh@kernel.org>
Tue, 17 Oct 2017 13:55:54 +0000 (08:55 -0500)
commitac0f3e30d87e593dc1460d5f0407662073281d93
tree71292f8edde4465dc025ef624cb29a2458f222d0
parente0f4145685ec7b477f6166ee819125107388a249
of: overlay: fix memory leak related to duplicated property

Function of_changeset_add_property or of_changeset_update_property may
fails. In this case the property just allocated is never deallocated.

Signed-off-by: Lixin Wang <alan.1.wang@nokia-sbell.com>
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/overlay.c