diff options
-rw-r--r-- | flattree.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -797,6 +797,10 @@ static struct node *unflatten_tree(struct inbuf *dtbuf, } } while (val != FDT_END_NODE); + if (node->name != flatname) { + free(flatname); + } + return node; } |