fields_alloc does not leak

fix #2431, close #2432
This commit is contained in:
Daniel Engelke
2022-05-22 03:08:36 +02:00
committed by Vinnie Falco
parent 9d23bec2bc
commit 9201210d5e

View File

@ -56,7 +56,7 @@ public:
void void
destroy() destroy()
{ {
if(refs_--) if(--refs_)
return; return;
this->~static_pool(); this->~static_pool();
delete[] reinterpret_cast<char*>(this); delete[] reinterpret_cast<char*>(this);