mirror of
https://github.com/emqx/neuron.git
synced 2026-10-29 15:09:11 +08:00
Merge pull request #650 from gc87/branch-mqtt
fix(mqtt): free ctx if msg send error
This commit is contained in:
@@ -618,6 +618,7 @@ static neu_err_code_e nodes_get(neu_plugin_t *plugin, neu_reqresp_head_t *head,
|
||||
strcpy(cmd.node, info->node);
|
||||
int ret = neu_plugin_op(plugin, header, &cmd);
|
||||
if (ret != 0) {
|
||||
free(head->ctx);
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user