Windows: do not leak space allocation