-
-
Notifications
You must be signed in to change notification settings - Fork 663
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BUG: fixed memory leaks in MINC IO #3548
BUG: fixed memory leaks in MINC IO #3548
Conversation
MINC IO doesn't always free allocations before throwing an exception, detected by InsightSoftwareConsortium#3529.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for doing this @issakomi. Have not tested but looks good.
Maybe, following for comment in the related issue:
I have done trivial test, without using itkIOTestHelper.h, just read MHA and write MNC to wrong path, the leaks are there. If the path is correct -- there are no problems,
Adding a test such as the one you did would be convenient.
it is really very simple test, to try |
Looks ok |
MINC IO does not free allocations before throwing an exception sometimes,
s. discussion #3529
https://open.cdash.org/viewDynamicAnalysis.php?buildid=8097352
(reviewed writing an image).