aboutsummaryrefslogtreecommitdiff
path: root/src/protocol/reqrep
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-01-02 17:48:14 -0800
committerGarrett D'Amore <garrett@damore.org>2017-01-02 17:48:14 -0800
commit29678ad27eff07ef0c4726b01a07794f5bff1bc7 (patch)
tree295ce05c7944c1ee02871e0de29582a59bdbc498 /src/protocol/reqrep
parent13e380343c0eec96a723e7407d59fb7f5d20aba0 (diff)
downloadnng-29678ad27eff07ef0c4726b01a07794f5bff1bc7.tar.gz
nng-29678ad27eff07ef0c4726b01a07794f5bff1bc7.tar.bz2
nng-29678ad27eff07ef0c4726b01a07794f5bff1bc7.zip
Leak fixes for valgrind.
Diffstat (limited to 'src/protocol/reqrep')
-rw-r--r--src/protocol/reqrep/req.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/protocol/reqrep/req.c b/src/protocol/reqrep/req.c
index 9cfc6f54..0879755f 100644
--- a/src/protocol/reqrep/req.c
+++ b/src/protocol/reqrep/req.c
@@ -103,6 +103,9 @@ nni_req_fini(void *arg)
nni_thr_fini(&req->resender);
nni_cv_fini(&req->cv);
nni_mtx_fini(&req->mx);
+ if (req->reqmsg != NULL) {
+ nni_msg_free(req->reqmsg);
+ }
NNI_FREE_STRUCT(req);
}