From 2827fa028aafc39557b29f09f905c67b04b3b011 Mon Sep 17 00:00:00 2001 From: Nicolas Cornu Date: Mon, 4 Nov 2024 16:05:03 +0100 Subject: [PATCH] Still free _rhs --- src/nrnoc/extcelln.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/nrnoc/extcelln.cpp b/src/nrnoc/extcelln.cpp index 404aef8b40..d93b008dcf 100644 --- a/src/nrnoc/extcelln.cpp +++ b/src/nrnoc/extcelln.cpp @@ -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; } }