commit | 90fc1aea07febf86b16ec931c864310d92751cfe | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Thu Apr 27 12:22:19 2023 +0200 |
committer | Michal Vasko <mvasko@cesnet.cz> | Thu Apr 27 12:22:19 2023 +0200 |
tree | 0b70ba9d54b1c3f2c81553b487cd704deaca6c71 | |
parent | 54bf9e2878eb14cb71fb992a0f3816d56e5abde2 [diff] [blame] |
tree data BUGFIX memory leak Refs #2011
diff --git a/src/tree_data_new.c b/src/tree_data_new.c index 2ff090a..2f92c7e 100644 --- a/src/tree_data_new.c +++ b/src/tree_data_new.c
@@ -299,6 +299,10 @@ /* restore logging */ ly_temp_log_options(NULL); } + if (rc && *tree) { + lyd_free_siblings(*tree); + *tree = NULL; + } return rc; }