commit | d5bfc48ad0ead9b31208e9ed0875417a61289b60 | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Tue Oct 26 10:47:54 2021 +0200 |
committer | Michal Vasko <mvasko@cesnet.cz> | Tue Oct 26 10:47:54 2021 +0200 |
tree | f9243b678685004f0d0352e368bbff5df3eb2d45 | |
parent | 70bf2220b63074ed74189db5f667bf26c46341fb [diff] [blame] |
messages server BUGFIX memory leak for actions
diff --git a/src/messages_server.c b/src/messages_server.c index 7a39e69..ec722be 100644 --- a/src/messages_server.c +++ b/src/messages_server.c
@@ -793,7 +793,9 @@ } lyd_free_tree(rpc->envp); - lyd_free_tree(rpc->rpc); + + /* may be action */ + lyd_free_all(rpc->rpc); free(rpc); }