diff --git a/modules/service/voting/dap_chain_net_srv_voting.c b/modules/service/voting/dap_chain_net_srv_voting.c index 7583bc2f1bd431cdeb18f5731eba9e8d42dd6b71..f6ac389d96f0bbacc1b00ceea7df9f3e50ae4729 100644 --- a/modules/service/voting/dap_chain_net_srv_voting.c +++ b/modules/service/voting/dap_chain_net_srv_voting.c @@ -440,10 +440,10 @@ static int s_vote_verificator(dap_ledger_t *a_ledger, dap_chain_tx_item_type_t a dap_list_free(l_tsd_list); // change vote & move it to the end of list l_voting->votes = dap_list_remove_link(l_voting->votes, it); - DAP_DELETE(it->data); l_voting->votes = dap_list_append(l_voting->votes, l_vote_item); char l_vote_hash_str[DAP_HASH_FAST_STR_SIZE]; dap_hash_fast_to_str(&((dap_chain_net_vote_t *)it->data)->vote_hash, l_vote_hash_str, DAP_HASH_FAST_STR_SIZE); + DAP_DELETE(it->data); log_it(L_INFO, "Vote %s of voting %s has been changed", l_vote_hash_str, dap_hash_fast_to_str_static(&l_voting->voting_hash)); return DAP_LEDGER_CHECK_OK; }