mirror of
https://github.com/emqx/neuron.git
synced 2026-10-23 10:22:32 +08:00
Fix neu_adapter_destroy memory leak
This commit is contained in:
@@ -1811,6 +1811,9 @@ void neu_adapter_destroy(neu_adapter_t *adapter)
|
||||
if (adapter->name != NULL) {
|
||||
free(adapter->name);
|
||||
}
|
||||
if (NULL != adapter->node_setting.buf) {
|
||||
free(adapter->node_setting.buf);
|
||||
}
|
||||
nng_mtx_lock(adapter->sub_grp_mtx);
|
||||
vector_uninit(&adapter->sub_grp_configs);
|
||||
nng_mtx_unlock(adapter->sub_grp_mtx);
|
||||
|
||||
Reference in New Issue
Block a user