commit | f4b95baf169d7265fc6eb87e08aed6ad2470be42 | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Fri Dec 11 08:42:33 2020 +0100 |
committer | Michal Vasko <mvasko@cesnet.cz> | Fri Dec 11 11:54:58 2020 +0100 |
tree | 3e7b7389ebf8356fe6ff851fd3267abe0cdc0b38 | |
parent | e657f96ce10a43d24cfaa4d6390bb10018dba72f [diff] [blame] |
data tree BUGFIX memory leak on failure
diff --git a/src/tree_data.c b/src/tree_data.c index e799ff2..e50849b 100644 --- a/src/tree_data.c +++ b/src/tree_data.c
@@ -1446,6 +1446,8 @@ if (new_node) { *new_node = nnode; } + } else { + lyd_free_tree(nparent); } return ret; }