diff --git a/src/nrnpython/nrnpy_p2h.cpp b/src/nrnpython/nrnpy_p2h.cpp index 406cfa835e..659c94a950 100644 --- a/src/nrnpython/nrnpy_p2h.cpp +++ b/src/nrnpython/nrnpy_p2h.cpp @@ -957,7 +957,6 @@ static Object* py_alltoall_type(int size, int type) { for (auto&& [i, p]: enumerate(psrc_list)) { if (p.is_none()) { scnt[i] = 0; - p.dec_ref(); continue; } auto b = pickle(p.ptr());