Skip to content
Snippets Groups Projects
Commit a9e5458a authored by Aleksey Feoktistov's avatar Aleksey Feoktistov
Browse files

[*] replaced to DAP_REALLOC

parent 7e8058e1
No related branches found
No related tags found
1 merge request!461hotfix-5395
......@@ -148,8 +148,7 @@ dap_chain_cs_dag_event_t * dap_chain_cs_dag_event_copy_with_sign_add( dap_chain_
}
DAP_DELETE(l_addr_str);
dap_chain_cs_dag_event_t * l_event_new = DAP_NEW_Z_SIZE(dap_chain_cs_dag_event_t, l_event_size+l_sign_size);
memcpy(l_event_new, a_event, l_event_size);
dap_chain_cs_dag_event_t * l_event_new = DAP_REALLOC(a_event, l_event_size+l_sign_size);
memcpy(l_event_new->hashes_n_datum_n_signs+l_offset, l_sign, l_sign_size);
*a_event_size_new = l_event_size+l_sign_size;
l_event_new->header.signs_count++;
......
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