On Wed, Apr 2, 2014 at 8:26 AM, Ivan Pechorin <[email protected]> wrote:

> You should use zstr_free() instead of free() to free the string returned
> from zstr_recv().

The reason is that memory allocated in the DLL can only be freed from
that DLL. Sadly this isn't portable... free() works on other
platforms.

> It's documented in current czmq trunk, not sure why it is missing from
> http://czmq.zeromq.org/manual:zstr

I've not updated the online docs for a while, my fault. It's a manual action.

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

Reply via email to