-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid leaking memory when handling error cases
We need to always handle the cleanup of resources even when we are catching errors so to avoid a lot of code duplication we wrap the internal logic into a lambda. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
- Loading branch information
1 parent
357a06f
commit c15c3b3
Showing
1 changed file
with
61 additions
and
57 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