I meant that memory which was allocated on thread's creating was freed only after process terminating so after child thread finished system didn't reuse its resources but kept them hm.....
I found that after exiting from child thread memory isn't freed. I commented everything which is "some actions" here, so thread's function contains only two lines. But it...