mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-29 20:59:47 +01:00
Merge branch 'maint'
* maint: Fix memory leak under Windows
This commit is contained in:
@@ -41,6 +41,8 @@ zmq::uuid_t::uuid_t ()
|
||||
|
||||
zmq::uuid_t::~uuid_t ()
|
||||
{
|
||||
if (string_buf)
|
||||
RpcStringFree (&string_buf);
|
||||
}
|
||||
|
||||
const char *zmq::uuid_t::to_string ()
|
||||
|
||||
@@ -58,7 +58,7 @@ namespace zmq
|
||||
enum { uuid_string_len = 36 };
|
||||
|
||||
// Returns a pointer to buffer containing the textual
|
||||
// representation of the UUID. The caller is reponsible to
|
||||
// representation of the UUID. The callee is reponsible to
|
||||
// free the allocated memory.
|
||||
const char *to_string ();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user