diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-06-24 14:11:35 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-06-24 14:11:35 -0700 |
| commit | 0a51aa7bfc88d55b98fdde0d497b072e6911457d (patch) | |
| tree | 722ef4713bf27a9aac9dce0a1fe9fa0edfe34a2d /src/transport | |
| parent | d753c00d43e6dc642b2445e4821537a92b8b8d23 (diff) | |
| download | nng-0a51aa7bfc88d55b98fdde0d497b072e6911457d.tar.gz nng-0a51aa7bfc88d55b98fdde0d497b072e6911457d.tar.bz2 nng-0a51aa7bfc88d55b98fdde0d497b072e6911457d.zip | |
Protocols keep their own reference counts.
Diffstat (limited to 'src/transport')
| -rw-r--r-- | src/transport/inproc/inproc.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/transport/inproc/inproc.c b/src/transport/inproc/inproc.c index c6f908f8..9a39208d 100644 --- a/src/transport/inproc/inproc.c +++ b/src/transport/inproc/inproc.c @@ -91,8 +91,12 @@ nni_inproc_pipe_close(void *arg) { nni_inproc_pipe *pipe = arg; - nni_msgq_close(pipe->rq); - nni_msgq_close(pipe->wq); + if (pipe->rq != NULL) { + nni_msgq_close(pipe->rq); + } + if (pipe->wq != NULL) { + nni_msgq_close(pipe->wq); + } } |
