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

minor leak in test #50

Closed
bjodah opened this issue Oct 17, 2020 · 1 comment
Closed

minor leak in test #50

bjodah opened this issue Oct 17, 2020 · 1 comment
Assignees

Comments

@bjodah
Copy link

bjodah commented Oct 17, 2020

Caught with asan, looks like buf* is never free'd (two occurrences)?

sundials-5.4.0/examples/nvector/test_nvector.c:

   5293:  buf = (realtype*) malloc((size_t)size);
   5356:  buf = (realtype*) malloc((size_t)size);

(adding free(buf) before return allows test to pass at least).

@balos1
Copy link
Member

balos1 commented Dec 12, 2020

Fixed by v5.6.0.

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

3 participants