[PATCH 1/2] of: overlay: fix memory leak related to duplicated property

2017-10-12 Thread alawang
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: alawang --- drivers/of/overlay.c | 15 +++ 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/drivers/of/overlay.c

[PATCH] of: dynamic: fix memory leak related to properties of __of_node_dup

2017-10-12 Thread alawang
never deallocated. Signed-off-by: alawang --- drivers/of/dynamic.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/of/dynamic.c b/drivers/of/dynamic.c index 301b6db..465d43b 100644 --- a/drivers/of/dynamic.c +++ b/drivers/of/dynamic.c @@ -335,6 +335,10 @@ void of_node_release(struct