Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
woops, plug a memleak
[simgrid.git] / src / kernel / context / ContextThread.cpp
index d22c7aa..b78153f 100644 (file)
@@ -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)