Skip to content

Commit

Permalink
Fix segfault in 87284 and probably 266900
Browse files Browse the repository at this point in the history
  • Loading branch information
olupton committed Jun 5, 2023
1 parent 4f804b8 commit 1f6afbf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/nmodl/nocpout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1289,13 +1289,13 @@ if (auto* const _extnode = _nrn_mechanism_access_extnode(_nd); _extnode) {\n\
lst = get_ion_variables(0);
if (lst->next != lst->prev) {
move(lst->next, lst->prev, ITM(q));
freelist((List**) lst);
freelist(&lst);
}
q = q->next;
lst = set_ion_variables(0);
if (lst->next != lst->prev) {
move(lst->next, lst->prev, ITM(q));
freelist((List**) lst);
freelist(&lst);
}
q = q->next;
Sprintf(buf, "\thoc_reg_ba(_mechtype, _ba%d, %s);\n", i, STR(q));
Expand Down

0 comments on commit 1f6afbf

Please sign in to comment.