Skip to content

Commit

Permalink
Avoid leaking file descriptors and memory for monitored sockets.
Browse files Browse the repository at this point in the history
  • Loading branch information
rolftimmermans authored and rgbkrk committed Sep 1, 2017
1 parent e1c8524 commit 484f790
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions binding.cc
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,7 @@ namespace zmq {
}

Socket::~Socket() {
Unmonitor();
Close();
}

Expand Down

0 comments on commit 484f790

Please sign in to comment.