From 8074f56ed453d6b511dcf6e2c4257a2dc1bb58a0 Mon Sep 17 00:00:00 2001 From: Jan Luca van den Busch Date: Sun, 28 Jan 2024 18:08:48 +0100 Subject: [PATCH] removed a decref --- balltree/balltree.c | 1 - 1 file changed, 1 deletion(-) diff --git a/balltree/balltree.c b/balltree/balltree.c index dbf310c..7968cd9 100644 --- a/balltree/balltree.c +++ b/balltree/balltree.c @@ -189,7 +189,6 @@ static PyArrayObject *weight_ensure_1dim_double_exists(PyObject *weight_obj, npy if (temp_tuple == NULL) { return NULL; } - Py_DECREF(weight_obj); weight_obj = temp_tuple; // temporary tuple, must decref after use } weight_arr = (PyArrayObject *)PyArray_FromAny(