From 9201210d5e59b45b79ba2221955765161d83c945 Mon Sep 17 00:00:00 2001 From: Daniel Engelke Date: Sun, 22 May 2022 03:08:36 +0200 Subject: [PATCH] fields_alloc does not leak fix #2431, close #2432 --- example/http/server/fast/fields_alloc.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/http/server/fast/fields_alloc.hpp b/example/http/server/fast/fields_alloc.hpp index d60c1c49..0245ba6c 100644 --- a/example/http/server/fast/fields_alloc.hpp +++ b/example/http/server/fast/fields_alloc.hpp @@ -56,7 +56,7 @@ public: void destroy() { - if(refs_--) + if(--refs_) return; this->~static_pool(); delete[] reinterpret_cast(this);