on windows it does not leak slowly. just preallocates 2x memory for all future leaks.

No one accused Microsoft of writing good software.