[zeromq-dev] memory leak or heap problem in czmq on Windows build

Pieter Hintjens ph at imatix.com
Wed Apr 2 09:02:38 CEST 2014


On Wed, Apr 2, 2014 at 8:26 AM, Ivan Pechorin <ivan.pechorin at gmail.com> 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



More information about the zeromq-dev mailing list