aboutsummaryrefslogtreecommitdiff
path: root/src/sp/transport
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2024-12-15 17:35:57 -0800
committerGarrett D'Amore <garrett@damore.org>2024-12-15 17:35:57 -0800
commita5c9cdfae0618f8e88a9ff2d61a7e6e1e464b2d6 (patch)
tree2c4caea036627ca36437c6de4e561042a0f28d18 /src/sp/transport
parentfe8cab7c9e7704eff51643cd90a6ddd40cf3f8cc (diff)
downloadnng-a5c9cdfae0618f8e88a9ff2d61a7e6e1e464b2d6.tar.gz
nng-a5c9cdfae0618f8e88a9ff2d61a7e6e1e464b2d6.tar.bz2
nng-a5c9cdfae0618f8e88a9ff2d61a7e6e1e464b2d6.zip
ipc: remove unnecessary check for null msg in fini
Diffstat (limited to 'src/sp/transport')
-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);
}