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:
Simon Giesecke
2018-05-17 14:34:52 +02:00
parent e37fc47fb6
commit 22b72bb678
2 changed files with 9 additions and 3 deletions

View File

@@ -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;