Release allocator to avoid segfault on Windows