Commit 33038da5 authored by Luca Boccassi's avatar Luca Boccassi Committed by GitHub

Merge pull request #2609 from bjovke/my_work

Problem: intermittent memory leak for req/rep send/recv. #2602 Solution: memory leak fixed.
parents a3550e61 69355730
......@@ -410,6 +410,8 @@ void zmq::pipe_t::terminate (bool delay_)
// There are still pending messages available, but the user calls
// 'terminate'. We can act as if all the pending messages were read.
else if (state == waiting_for_delimiter && !delay) {
// Drop any unfinished outbound messages.
rollback ();
outpipe = NULL;
send_pipe_term_ack (peer);
state = term_ack_sent;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment