diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-03-29 23:34:29 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-03-29 23:34:29 -0700 |
| commit | 3f4ec4032684ce1c1ee629cdf6fce992a01521b2 (patch) | |
| tree | 07a753d7f80cdfe2dfca5f37d8b4734054167720 /src/protocol/pubsub/pub.c | |
| parent | 86eaf052cc535658783dd5c3d5925f58fd70f983 (diff) | |
| download | nng-3f4ec4032684ce1c1ee629cdf6fce992a01521b2.tar.gz nng-3f4ec4032684ce1c1ee629cdf6fce992a01521b2.tar.bz2 nng-3f4ec4032684ce1c1ee629cdf6fce992a01521b2.zip | |
Hopefully close shutdown race in rep.
Diffstat (limited to 'src/protocol/pubsub/pub.c')
| -rw-r--r-- | src/protocol/pubsub/pub.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/protocol/pubsub/pub.c b/src/protocol/pubsub/pub.c index a37fe991..8ca7f0f9 100644 --- a/src/protocol/pubsub/pub.c +++ b/src/protocol/pubsub/pub.c @@ -78,10 +78,8 @@ nni_pub_sock_fini(void *arg) { nni_pub_sock *pub = arg; - if (pub != NULL) { - nni_aio_fini(&pub->aio_getq); - NNI_FREE_STRUCT(pub); - } + nni_aio_fini(&pub->aio_getq); + NNI_FREE_STRUCT(pub); } |
