[zeromq-dev] zmq_msg_move

Pieter Hintjens ph at imatix.com
Thu Aug 2 04:50:42 CEST 2012

On Wed, Aug 1, 2012 at 11:03 PM, Andrew Hume <andrew at research.att.com> wrote:

> i propose that you should need to zmq_close, and furthermore,
> that you need to zmq_close a msg you have zmq_msg_init()ed
> in the case you do not do a zmq_recv on it.

Fully agreed. Any constructor should be matched with a destructor.
It's a shame the API didn't take more care with object lifecycles.

Would you like to make a patch to the documentation (libzmq, then).


More information about the zeromq-dev mailing list