aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/sp/transport/ipc/ipc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/sp/transport/ipc/ipc.c b/src/sp/transport/ipc/ipc.c
index c659b8fd..4a1ce0d2 100644
--- a/src/sp/transport/ipc/ipc.c
+++ b/src/sp/transport/ipc/ipc.c
@@ -141,9 +141,7 @@ ipc_pipe_fini(void *arg)
nni_aio_fini(&p->rx_aio);
nni_aio_fini(&p->tx_aio);
nni_aio_fini(&p->neg_aio);
- if (p->rx_msg) {
- nni_msg_free(p->rx_msg);
- }
+ nni_msg_free(p->rx_msg);
nni_mtx_fini(&p->mtx);
}