diff options
Diffstat (limited to 'src/protocol/pipeline')
| -rw-r--r-- | src/protocol/pipeline/push.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/protocol/pipeline/push.c b/src/protocol/pipeline/push.c index fcbb6d4f..16156ee4 100644 --- a/src/protocol/pipeline/push.c +++ b/src/protocol/pipeline/push.c @@ -208,6 +208,8 @@ nni_push_recv_cb(void *arg) nni_pipe_close(pp->pipe); return; } + nni_msg_free(pp->aio_recv.a_msg); + pp->aio_recv.a_msg = NULL; nni_push_recv(pp); } @@ -220,6 +222,8 @@ nni_push_send_cb(void *arg) nni_mtx *mx = nni_sock_mtx(push->sock); if (nni_aio_result(&pp->aio_send) != 0) { + nni_msg_free(pp->aio_send.a_msg); + pp->aio_send.a_msg = NULL; nni_pipe_close(pp->pipe); return; } |
