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>
This commit is contained in:
Lixin Wang 2017-10-16 17:54:32 +08:00 • committed by Rob Herring
commit ac0f3e30d8