Pieter Hintjens <ph <at> imatix.com> writes:

> 
> For what it's worth, there were two cases in CZMQ that did _close
> after _send; I've removed these and re-run the tests under Valgrind
> and it does not leak memory, as expected.
> 
> -Pieter
I expect this too. But is it documented behaviour or implementation detail?
And one more question.
Do i need call zmq_msg_init before copy/move?

while(1)do{
  zmq_msg_t msg;
  // zmq_msg_init ?
  zmq_msg_copy(&msg, HB_MSG);
  zmq_msg_send(skt, &msg, 0);
  // zmq_msg_close ?
  sleep(INTERVAL);
}
 

_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to