From fecc0c464070133bfb71b4fe794f4edb5e952e00 Mon Sep 17 00:00:00 2001 From: orignal Date: Tue, 25 Jun 2019 16:37:06 -0400 Subject: [PATCH] don't call destructor twice --- libi2pd/util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libi2pd/util.h b/libi2pd/util.h index 6da20ad6..eccdadf7 100644 --- a/libi2pd/util.h +++ b/libi2pd/util.h @@ -46,7 +46,7 @@ namespace util { auto tmp = m_Head; m_Head = static_cast(*(void * *)m_Head); // next - delete tmp; + ::operator delete ((void *)tmp); } }