in reply to Re^9: ithreads memory leak
in thread ithreads memory leak

Interesting. Thank you for explanation. Yet, in example above, the "large allocation" for array was done both in main thread and second thread. Memory was returned to OS only when thread was joined, and not when array was destroyed. I'm also trying now to avoid single large allocation, in created thread. (E.g., pushing to array in loop.) Again, when thread is joined, memory is back to OS.