Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Using `operator delete` on an `operator new[]` allocated memory is an undefined behaviour. "The behavior of the standard library implementation of this function is undefined unless ptr is a null pointer or is a pointer previously obtained from the standard library implementation of operator new(std::size_t) or operator new(std::size_t, std::nothrow_t)." https://stackoverflow.com/a/2425749/5795772 https://en.cppreference.com/w/cpp/memory/new/operator_delete
- Loading branch information