mirror of
https://github.com/zeromq/libzmq.git
synced 2025-11-06 05:00:07 +01:00
Problem: deallocate calls release after de-allocation
Solution: reduce to newly extracted function clear, which does not use the freed pointer
This commit is contained in:
@@ -120,6 +120,8 @@ class shared_message_memory_allocator
|
||||
void advance_content () { msg_content++; }
|
||||
|
||||
private:
|
||||
void clear ();
|
||||
|
||||
unsigned char *buf;
|
||||
std::size_t bufsize;
|
||||
const std::size_t max_size;
|
||||
|
||||
Reference in New Issue
Block a user