diff --git a/dap-sdk b/dap-sdk index 634bf59c2a94a7dec82fcd9304e2f160b3419c45..16a8aa9d669a7e8d6bf90b60306a5b11fc411028 160000 --- a/dap-sdk +++ b/dap-sdk @@ -1 +1 @@ -Subproject commit 634bf59c2a94a7dec82fcd9304e2f160b3419c45 +Subproject commit 16a8aa9d669a7e8d6bf90b60306a5b11fc411028 diff --git a/modules/net/dap_chain_node_cli_cmd_tx.c b/modules/net/dap_chain_node_cli_cmd_tx.c index 4f1c02a87a17575ed083f3af432f9ee5ead18754..f3628b012c307b35e5277c92cd413bd96bd19030 100644 --- a/modules/net/dap_chain_node_cli_cmd_tx.c +++ b/modules/net/dap_chain_node_cli_cmd_tx.c @@ -659,6 +659,9 @@ size_t datums = 0; if (json_object_array_length(j_arr_data) > 0) { json_object_object_add(j_obj_tx, "data", j_arr_data); json_object_array_add(json_obj_datum, j_obj_tx); + } else { + json_object_put(j_arr_data); + json_object_put(j_obj_tx); } dap_list_free(l_list_out_items); if (l_is_need_correction && l_corr_object) {