Fix memory leak in TaskManager (thx @roystgnr)

This commit is contained in:
Matthias Hochsteger 2024-09-02 10:15:28 +02:00
parent 00664898c3
commit 508136b533

View File

@ -168,6 +168,12 @@ namespace ngcore
trace = nullptr; trace = nullptr;
} }
num_threads = 1; num_threads = 1;
#ifdef USE_NUMA
for (int j = 0; j < num_nodes; j++)
numa_free (nodedata[j], sizeof(NodeData));
#else
delete nodedata[0];
#endif
} }
#ifdef WIN32 #ifdef WIN32