Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
stdlib: pass along alignment for dealloc
Ensure that UnsafeMutablePointer.deallocate has the alignment that was used when invoking UnsafeMutablePointer.allocate. This is required to ensure that the appropriate `free` function is invoked. We would previously fail on Windows as the allocation would use `malloc` and due to the value being `-1`, use `_aligned_free` instead when deallocating.
- Loading branch information