Skip to content

Commit 484f790

Browse files
rolftimmermansrgbkrk
authored andcommitted
Avoid leaking file descriptors and memory for monitored sockets.
1 parent e1c8524 commit 484f790

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

binding.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,7 @@ namespace zmq {
340340
}
341341

342342
Socket::~Socket() {
343+
Unmonitor();
343344
Close();
344345
}
345346

0 commit comments

Comments
 (0)