Skip to content
Snippets Groups Projects
Commit e21810c1 authored by alexander.lysikov's avatar alexander.lysikov
Browse files

fixed a few memory leaks

parent a89db051
Branches feature-2316
No related tags found
No related merge requests found
......@@ -317,7 +317,8 @@ int dap_chain_mempool_tx_create_massive( dap_chain_t * a_chain, dap_enc_key_t *a
log_it(L_WARNING,"Can't add input from %s with %llu datoshi",l_in_hash_str, item->value);
}
l_list_used_out = l_list_tmp->next;
DAP_DELETE(l_list_tmp);
DAP_DELETE(l_list_tmp->data);
dap_list_free1(l_list_tmp);
l_list_tmp = l_list_used_out;
if ( l_value_to_items >= l_value_transfer )
break;
......@@ -395,6 +396,7 @@ int dap_chain_mempool_tx_create_massive( dap_chain_t * a_chain, dap_enc_key_t *a
// Now produce datum
dap_chain_datum_t *l_datum = dap_chain_datum_create(DAP_CHAIN_DATUM_TX, l_tx_new, l_tx_size);
dap_chain_datum_tx_delete(l_tx_new);
//dap_chain_ledger_tx_add( a_chain->ledger, l_tx);
l_objs[i].key = dap_chain_hash_fast_to_str_new(&l_tx_new_hash);
......@@ -405,7 +407,7 @@ int dap_chain_mempool_tx_create_massive( dap_chain_t * a_chain, dap_enc_key_t *a
l_objs[i].key? l_objs[i].key :"NULL" , l_objs[i].value_len );
}
dap_list_free(l_list_used_out);
dap_list_free_full(l_list_used_out, free);
char * l_gdb_group = dap_chain_net_get_gdb_group_mempool(a_chain);
//return 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment