set byte_buffer ptr to null after deallocating from pool

This commit is contained in:
Andre Puschmann 2018-02-16 21:31:11 +01:00
parent 75a546cff1
commit c5ffdfe8c7
1 changed files with 1 additions and 0 deletions

View File

@ -164,6 +164,7 @@ public:
}
b->reset();
pool->deallocate(b);
b = NULL;
}
private:
buffer_pool<byte_buffer_t> *pool;