Kudos to the devs who fixed it. In my c++ project I was trying for weeks to figure out how to release back to the OS the memory that my std::vector was occupying, only to find out that there is no straight forward way of achieving so.
Guess the solution would be either preallocating/reserving everything, or maybe using custom allocators that works with bigger chunks
See an example here: https://stackoverflow.com/questions/26020580/huge-stdvectors...