zeromq / azmq

C++ language binding library integrating ZeroMQ with Boost Asio
Boost Software License 1.0
318 stars 108 forks source link

possible memory leak in `socket_service::enqueue` #165

Closed timblechmann closed 2 years ago

timblechmann commented 4 years ago

running address sanitizer on my application gave me memory leaks of reactor_op_ptr from: https://github.com/zeromq/azmq/blob/master/azmq/detail/socket_service.hpp#L482-L490

where is this memory supposed to be freed? it is a leak inside azmq or is it something that should be handled on the application side?

dkl commented 4 years ago

We saw this also – it looks like per_descriptor_data should free the remaining objects in its op_queue_ on destruction, but doesn't do so.