forked from java-native-access/jna
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure buffer is released even if future fails (java-native-access#320)
Motivation: We should release in a finally blog so we don't leak on failure Modifications: Move release() to finally block. Result: No more leaks when write fails
- Loading branch information
1 parent
2c70568
commit 6113c9f
Showing
1 changed file
with
2 additions
and
2 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