leak the pointer only on a windows platform