I came across a project on Github (/mabrarov/exception-safety), which describes an approach to prevent resource leaks due to throwing an error or exception. Without throwing error/exception resource remains open.
I would like to know how often you meet with the necessity of using similar approaches? How do you deal with the leaks in such cases? Have you ever encountered leaks like on the branch "case_example"?