diff options
| author | Garrett D'Amore <garrett@damore.org> | 2024-12-15 17:35:57 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2024-12-15 17:35:57 -0800 |
| commit | a5c9cdfae0618f8e88a9ff2d61a7e6e1e464b2d6 (patch) | |
| tree | 2c4caea036627ca36437c6de4e561042a0f28d18 /src | |
| parent | fe8cab7c9e7704eff51643cd90a6ddd40cf3f8cc (diff) | |
| download | nng-a5c9cdfae0618f8e88a9ff2d61a7e6e1e464b2d6.tar.gz nng-a5c9cdfae0618f8e88a9ff2d61a7e6e1e464b2d6.tar.bz2 nng-a5c9cdfae0618f8e88a9ff2d61a7e6e1e464b2d6.zip | |
ipc: remove unnecessary check for null msg in fini
Diffstat (limited to 'src')
| -rw-r--r-- | src/sp/transport/ipc/ipc.c | 4 |
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); } |
