The increase of memory usage doesn't mean you have a leak. Try continuing the expansion until you reach the physical amount of memory in the machine and see if the usage continues to grow. Maybe the operating system is simply keeping the memory reserved for your process until some other process requests it. That's what Linux tends to do, by the way and it's perfectly fine. Maybe newer Windows systems do that as well.