-
Notifications
You must be signed in to change notification settings - Fork 464
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve memory manager for MSVC exceptions in c-tor args
MSVC calls allocator first before evaluating arguments for the actual object constructor. Since the evaluation phase can quite easily throw an error (like in `parse_list`), the memory manager is left in an undefined state. The object is already tracked but not initialized and we get an error if we try to `delete` the object (we should use free instead). Added macro to be used instead of overloaded new operator!
- Loading branch information
Showing
2 changed files
with
29 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters