aboutsummaryrefslogtreecommitdiff
path: root/src/protocol/reqrep/req.c
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-03-10 21:02:57 -0800
committerGarrett D'Amore <garrett@damore.org>2017-03-10 21:02:57 -0800
commit97fb819ccfd0d4cb7f02d7fc521d9478ba050776 (patch)
treef9517083e33473cfa790611c6cbec4650ceed6f4 /src/protocol/reqrep/req.c
parentb89a02106c3388f40ab4cd3610de102259fa5da0 (diff)
downloadnng-97fb819ccfd0d4cb7f02d7fc521d9478ba050776.tar.gz
nng-97fb819ccfd0d4cb7f02d7fc521d9478ba050776.tar.bz2
nng-97fb819ccfd0d4cb7f02d7fc521d9478ba050776.zip
Surveyor pattern callback-driven.
Diffstat (limited to 'src/protocol/reqrep/req.c')
-rw-r--r--src/protocol/reqrep/req.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/protocol/reqrep/req.c b/src/protocol/reqrep/req.c
index 553ef0bf..f37913e6 100644
--- a/src/protocol/reqrep/req.c
+++ b/src/protocol/reqrep/req.c
@@ -110,12 +110,10 @@ nni_req_sock_fini(void *arg)
{
nni_req_sock *req = arg;
- if (req != NULL) {
- if (req->reqmsg != NULL) {
- nni_msg_free(req->reqmsg);
- }
- NNI_FREE_STRUCT(req);
+ if (req->reqmsg != NULL) {
+ nni_msg_free(req->reqmsg);
}
+ NNI_FREE_STRUCT(req);
}