Skip to content
Snippets Groups Projects
Commit bc4b9999 authored by Constantin P.'s avatar Constantin P. 💬
Browse files

Double free fix

parent 22dd3af1
No related branches found
No related tags found
2 merge requests!1957Develop port 02 12,!1956Double free fix
Pipeline #47914 passed with stage
in 16 minutes and 13 seconds
......@@ -162,13 +162,14 @@ void dap_chain_delete(dap_chain_t *a_chain)
}
pthread_rwlock_unlock(&s_chain_items_rwlock);
dap_list_free_full(a_chain->atom_notifiers, NULL);
dap_config_close(a_chain->config);
if (a_chain->callback_delete)
a_chain->callback_delete(a_chain);
dap_config_close(a_chain->config);
if (DAP_CHAIN_PVT(a_chain)) {
DAP_DEL_MULTY(DAP_CHAIN_PVT(a_chain)->file_storage_dir, DAP_CHAIN_PVT(a_chain));
}
DAP_DEL_MULTY(a_chain->name, a_chain->net_name, a_chain->datum_types, a_chain->autoproc_datum_types, a_chain->authorized_nodes_addrs, a_chain->_inheritor, a_chain);
DAP_DEL_MULTY(a_chain->name, a_chain->net_name, a_chain->datum_types, a_chain->autoproc_datum_types,
a_chain->authorized_nodes_addrs, a_chain->_inheritor);
pthread_rwlock_destroy(&a_chain->rwlock);
pthread_rwlock_destroy(&a_chain->cell_rwlock);
DAP_DELETE(a_chain);
......
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