mirror of
https://github.com/nanomq/nanomq.git
synced 2025-06-22 01:57:27 +00:00
fix: nanomq_cli bench sub memory leak
Signed-off-by: Li Zhanhui <lizhanhui@gmail.com>
This commit is contained in:
@ -177,6 +177,7 @@ sub_cb(void *arg)
|
||||
}
|
||||
nng_atomic_inc(statistics.recv_cnt);
|
||||
msg = nng_aio_get_msg(work->aio);
|
||||
nng_msg_free(msg);
|
||||
work->state = RECV;
|
||||
nng_ctx_recv(work->ctx, work->aio);
|
||||
break;
|
||||
|
Reference in New Issue
Block a user