-
Notifications
You must be signed in to change notification settings - Fork 119
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
Fix leak in nrn_thread_free
.
#2541
Conversation
I suspect that the allocation happens here: Lines 503 to 508 in 88d7962
|
This comment has been minimized.
This comment has been minimized.
Codecov Report
@@ Coverage Diff @@
## master #2541 +/- ##
==========================================
- Coverage 61.49% 61.48% -0.02%
==========================================
Files 623 623
Lines 119163 119163
==========================================
- Hits 73281 73265 -16
- Misses 45882 45898 +16
... and 7 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
✔️ e2de83f -> Azure artifacts URL |
@1uc : rebasing this on the master to get the CI part going. |
This comment has been minimized.
This comment has been minimized.
The array of `Prop*` is allocated unconditionally in `thread_memblist_setup`. tml->ml->prop = new Prop*[mlcnt[i]]; // used for ode_map if (!memb_func[i].hoc_mech) { CACHELINE_ALLOC(tml->ml->pdata, Datum*, mlcnt[i]); } Hence this commit adjust the logic in `nrn_thread_free` deallocate `ml->prop` unconditionally.
36f59bc
to
e057dee
Compare
✔️ 36f59bc -> Azure artifacts URL |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
e057dee
to
9cc76c1
Compare
✔️ 9cc76c1 -> Azure artifacts URL |
The array of
Prop*
is allocated unconditionally inthread_memblist_setup
.Hence this commit adjust the logic in
nrn_thread_free
deallocateml->prop
unconditionally.