When handling exceptions in conjunction with dynamic heap memory management, the programmer must prevent memory leaks.
The book for the C++ course: https://www.amazon.de/dp/B09V2HGRNV
All code examples from the C++ book: https://github.com/mahrth/Cpp-Buch2