From 5d57d133fb9f7ccc69af5631ec4ecbb844945cf0 Mon Sep 17 00:00:00 2001 From: Olzhas <oljas.jarasbaev@demlabs.net> Date: Wed, 30 Oct 2024 12:42:18 +0700 Subject: [PATCH] [*] fix leaks --- dap-sdk | 2 +- modules/net/dap_chain_node_cli_cmd.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dap-sdk b/dap-sdk index 142a1919f0..4d7dec28f7 160000 --- a/dap-sdk +++ b/dap-sdk @@ -1 +1 @@ -Subproject commit 142a1919f08e19970bd68e898ab6061118fe492e +Subproject commit 4d7dec28f790622ac2f729fbad1d95dec97c2cfa diff --git a/modules/net/dap_chain_node_cli_cmd.c b/modules/net/dap_chain_node_cli_cmd.c index 7852ab7015..5bd7ed2db1 100644 --- a/modules/net/dap_chain_node_cli_cmd.c +++ b/modules/net/dap_chain_node_cli_cmd.c @@ -8606,7 +8606,7 @@ int com_exec_cmd(int argc, char **argv, void **reply) { log_it(L_ERROR, "No response from node"); dap_json_rpc_error_add(*a_json_arr_reply, -8, "No reponse from node"); dap_chain_node_client_close_unsafe(l_node_client); - DAP_DELETE(node_info); + DAP_DEL_Z(node_info); return -8; } @@ -8619,7 +8619,7 @@ int com_exec_cmd(int argc, char **argv, void **reply) { } else { json_object_array_add(*a_json_arr_reply, json_object_new_string("Empty reply")); } - - dap_chain_node_client_close_mt(l_node_client); + DAP_DEL_Z(node_info); + dap_json_rpc_request_free(l_request); return 0; } -- GitLab