Skip to content

Where are Clean()s called? #2057

Closed Answered by ekluzek
samsrabin asked this question in Q&A
Discussion options

You must be logged in to vote

What @olyson is pointing out is that sometimes we don't use the Clean in the main code, because we don't free memory until the program is finished. So we don't always explicitly call a Clean on everything created. But, the Clean is used in some unit-testers where you do want to clean memory for these objects.

We do have a finalize routine used for CTSM, but in practice there isn't much there. But, we should be calling all the Cleans for objects like this.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by samsrabin
Comment options

samsrabin
Jul 13, 2023
Maintainer Author

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants