From 29678ad27eff07ef0c4726b01a07794f5bff1bc7 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Mon, 2 Jan 2017 17:48:14 -0800 Subject: Leak fixes for valgrind. --- src/protocol/reqrep/req.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/protocol/reqrep/req.c') 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); } -- cgit v1.2.3-70-g09d2