Merge pull request #650 from gc87/branch-mqtt

fix(mqtt): free ctx if msg send error
This commit is contained in:
fengzeroz
2022-07-18 18:38:07 +08:00
committed by GitHub
+1
View File
@@ -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;
}
}