mirror of
https://github.com/emqx/neuron.git
synced 2026-10-22 01:05:56 +08:00
fix(core): subscription parameter memory leak
This commit is contained in:
@@ -647,6 +647,8 @@ static int manager_loop(enum neu_event_io_type type, int fd, void *usr_data)
|
||||
forward_msg(manager, msg, cmd->app);
|
||||
manager_storage_subscribe(manager, cmd->app, cmd->driver,
|
||||
cmd->group, cmd->params);
|
||||
} else {
|
||||
free(cmd->params);
|
||||
}
|
||||
|
||||
header->type = NEU_RESP_ERROR;
|
||||
|
||||
Reference in New Issue
Block a user