diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-03-10 21:02:57 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-03-10 21:02:57 -0800 |
| commit | 97fb819ccfd0d4cb7f02d7fc521d9478ba050776 (patch) | |
| tree | f9517083e33473cfa790611c6cbec4650ceed6f4 /src/protocol/reqrep/rep.c | |
| parent | b89a02106c3388f40ab4cd3610de102259fa5da0 (diff) | |
| download | nng-97fb819ccfd0d4cb7f02d7fc521d9478ba050776.tar.gz nng-97fb819ccfd0d4cb7f02d7fc521d9478ba050776.tar.bz2 nng-97fb819ccfd0d4cb7f02d7fc521d9478ba050776.zip | |
Surveyor pattern callback-driven.
Diffstat (limited to 'src/protocol/reqrep/rep.c')
| -rw-r--r-- | src/protocol/reqrep/rep.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/protocol/reqrep/rep.c b/src/protocol/reqrep/rep.c index 751a851b..736e4099 100644 --- a/src/protocol/reqrep/rep.c +++ b/src/protocol/reqrep/rep.c @@ -159,14 +159,12 @@ nni_rep_pipe_fini(void *arg) { nni_rep_pipe *rp = arg; - if (rp != NULL) { - nni_msgq_fini(rp->sendq); - nni_aio_fini(&rp->aio_getq); - nni_aio_fini(&rp->aio_send); - nni_aio_fini(&rp->aio_recv); - nni_aio_fini(&rp->aio_putq); - NNI_FREE_STRUCT(rp); - } + nni_msgq_fini(rp->sendq); + nni_aio_fini(&rp->aio_getq); + nni_aio_fini(&rp->aio_send); + nni_aio_fini(&rp->aio_recv); + nni_aio_fini(&rp->aio_putq); + NNI_FREE_STRUCT(rp); } |
