Use scope-based memory management for malloc, free, open, close, etc.

If we are using C++, we might as well use scope-based memory management
for these things, cleaner and less error prone. Also removed
unnecessary gotos.
This commit is contained in:
Eric Curtin
2023-05-08 23:49:26 +01:00
committed by Caleb Connolly
parent 843aa92266
commit 9d7600df51
5 changed files with 331 additions and 347 deletions

File diff suppressed because it is too large Load Diff