Commit dec53607 by Marcus Winter

base_cpp: closure was allocated with Allocation::New but deleted with operator delete

parent 10f8e503
......@@ -88,7 +88,7 @@ template<typename ThreadClosure>
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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment