mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-27 02:53:12 +01:00
Problem: intermittent memory leak for req/rep send/recv. #2602 Solution: memory leak fixed.
This commit is contained in:
@@ -410,6 +410,8 @@ void zmq::pipe_t::terminate (bool delay_)
|
|||||||
// There are still pending messages available, but the user calls
|
// There are still pending messages available, but the user calls
|
||||||
// 'terminate'. We can act as if all the pending messages were read.
|
// 'terminate'. We can act as if all the pending messages were read.
|
||||||
else if (state == waiting_for_delimiter && !delay) {
|
else if (state == waiting_for_delimiter && !delay) {
|
||||||
|
// Drop any unfinished outbound messages.
|
||||||
|
rollback ();
|
||||||
outpipe = NULL;
|
outpipe = NULL;
|
||||||
send_pipe_term_ack (peer);
|
send_pipe_term_ack (peer);
|
||||||
state = term_ack_sent;
|
state = term_ack_sent;
|
||||||
|
|||||||
Reference in New Issue
Block a user