Skip to content
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

kinsolInterface::initialize leaks if called multiple times #53

Open
mcneish1 opened this issue Sep 9, 2019 · 0 comments
Open

kinsolInterface::initialize leaks if called multiple times #53

mcneish1 opened this issue Sep 9, 2019 · 0 comments

Comments

@mcneish1
Copy link

mcneish1 commented Sep 9, 2019

LS and J are leaked upon successive calls to kinsolInterface::initialize. Additionally, KINInit leaks if called more than once for a given solverMem.

KINInit should be only called when !flags[initialized_flag], and LS/J should be freed here (or in sundialsInterface::allocate, where that happens with the other variables sundialsInterface manages).

@mcneish1 mcneish1 changed the title kinsolInterface::initialize leak if called multiple times kinsolInterface::initialize leaks if called multiple times Sep 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant