Skip to content

Commit

Permalink
Still free _rhs
Browse files Browse the repository at this point in the history
  • Loading branch information
alkino committed Nov 4, 2024
1 parent 90ae2b3 commit 2827fa0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/nrnoc/extcelln.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -214,10 +214,11 @@ static void extcell_init(neuron::model_sorted_token const&,
void extnode_free_elements(Extnode* nde) {
if (nde->v) {
free(nde->v); /* along with _a and _b */
nde->v = NULL;
nde->_a = NULL;
nde->_b = NULL;
nde->_rhs = NULL;
free(nde->_rhs);
nde->v = nullptr;
nde->_a = nullptr;
nde->_b = nullptr;
nde->_rhs = nullptr;
}
}

Expand Down

0 comments on commit 2827fa0

Please sign in to comment.