Free memory from direct_iteration and direct_output - #929
Conversation
economon
left a comment
There was a problem hiding this comment.
LGTM.
While you're at it, see any other memory that needs deleting? Or is the valgrind output leak-free otherwise?
|
The output isn't leak-free otherwise. Those were just a couple of the bigger ones that were easy to track down. I think the rest are mainly CoDi/MeDi-related leaks, though. Keep in mind I ran this on feature_adap_sst (the line numbers below are for this branch though) so some of these might be resolved:
I've attached the valgrind log from one of the cores below, in case anyone really wants to parse it |
|
We could change some of those things to |
|
@pcarruscag just to clarify, are you suggesting switching some of the containers, e.g. For example, the destructor for but we only call and in ampiFunctions.hpp, where |
|
Just the Yeah even from MPI itself we get memory leaks, I don't think those are too bad though, if we leaked a lot of memory during normal iterations that would be a problem, but if it is just a few objects that are not destroyed when the code terminates... meh |
economon
left a comment
There was a problem hiding this comment.
LGTM. Thanks for the extra cleanup in SU2_SOL. I think this is good for now
Proposed Changes
This one's really small, but when running valgrind on some of my adaptation runs, I noticed that a lot of memory was being leaked due to not deleting direct_iteration and direct_output in CDiscAdjSinglezoneDriver.
Related Work
None that I'm aware of after a cursory look through PRs.
PR Checklist