Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TSCBasic: correct a use-after-free on Windows (swiftlang#232)
This corrects a use-after-free caused by a pointer escape. The lifetime of the pointer is not guaranteed, and the OS may free the pointer early, particularly with OSSA. Push the handling into the closure to ensure that the lifetime is extended for the duration.
- Loading branch information