From: Martin Quinson Date: Wed, 16 Jan 2019 06:41:47 +0000 (+0100) Subject: woops, plug a memleak X-Git-Tag: v3_22~552 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/68789b70e7a97bf748e0829eceeb4e2aca2cc490?ds=sidebyside woops, plug a memleak --- diff --git a/src/kernel/context/ContextThread.cpp b/src/kernel/context/ContextThread.cpp index d22c7aa318..b78153fc4a 100644 --- a/src/kernel/context/ContextThread.cpp +++ b/src/kernel/context/ContextThread.cpp @@ -79,6 +79,7 @@ ThreadContext::~ThreadContext() { if (this->thread_) /* If there is a thread (maestro don't have any), wait for its termination */ thread_->join(); + delete thread_; } void *ThreadContext::wrapper(void *param)