Skip to content

Commit

Permalink
fixup: tail = head takes care of the inc_ref.
Browse files Browse the repository at this point in the history
  • Loading branch information
1uc committed Nov 18, 2024
1 parent 854719c commit 1c5d9eb
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/nrnpython/nrnpy_p2h.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@ static void py2n_component(Object* ob, Symbol* sym, int nindex, int isfunc) {
}
tail = nb::steal(PyRun_String(sym->name, Py_eval_input, main_namespace, main_namespace));
} else {
head.inc_ref();
if (strcmp(sym->name, "_") == 0) {
tail = head;
} else {
Expand Down

0 comments on commit 1c5d9eb

Please sign in to comment.