From dec536076fa3e7e790c61096775d37b4fbc62372 Mon Sep 17 00:00:00 2001 From: Marcus Winter Date: Thu, 29 Jan 2015 12:20:45 +0100 Subject: [PATCH] base_cpp: closure was allocated with Allocation::New but deleted with operator delete --- base_cpp/include/embb/base/internal/thread-inl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base_cpp/include/embb/base/internal/thread-inl.h b/base_cpp/include/embb/base/internal/thread-inl.h index 46e81bd..acdfeaf 100644 --- a/base_cpp/include/embb/base/internal/thread-inl.h +++ b/base_cpp/include/embb/base/internal/thread-inl.h @@ -88,7 +88,7 @@ template void Thread::CheckThreadCreationErrors(int result, ThreadClosure* closure) { if (result != EMBB_SUCCESS) { if (closure != NULL) { - delete closure; + Allocation::Delete(closure); } const char* message = "Could not create thread."; if (result == EMBB_NOMEM) { -- libgit2 0.26.0