Skip to content

Commit

Permalink
Problem: intermittent memory leak for req/rep send/recv. zeromq#2602
Browse files Browse the repository at this point in the history
…Solution: memory leak fixed.
  • Loading branch information
bjovke committed Jun 27, 2017
1 parent a3550e6 commit 6935573
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pipe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6935573

Please sign in to comment.