Skip to content
Commit 070ea018 authored by Lixin Wang's avatar Lixin Wang Committed by Rob Herring
Browse files

of: dynamic: fix memory leak related to properties of __of_node_dup



If a node with no properties is dynamically added, then a property is
dynamically added to the node, then the property is dynamically removed,
the result will be node->properties == NULL and node->deadprops != NULL.

Add a separate function to release the properties in both lists.

Signed-off-by: default avatarLixin Wang <alan.1.wang@nokia-sbell.com>
Reviewed-by: default avatarFrank Rowand <frank.rowand@sony.com>
Signed-off-by: default avatarRob Herring <robh@kernel.org>
parent 4ee7c0d9
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment