# HG changeset patch # User Franz Glasner # Date 1641328389 -3600 # Node ID ba8f1295e1e2ef9a1c6fa47e08bce5dff4efcace # Parent 3d5ef056134c8f7f086878ecc449418ff942ff2c For consistency reasons: set tmp to NULL if not useable any more diff -r 3d5ef056134c -r ba8f1295e1e2 configmix/_speedups.c --- a/configmix/_speedups.c Tue Jan 04 20:53:55 2022 +0100 +++ b/configmix/_speedups.c Tue Jan 04 21:33:09 2022 +0100 @@ -872,7 +872,7 @@ } else { if (PyTuple_Size(tmp) != 2) { - Py_DECREF(tmp); + Py_DECREF(tmp); tmp = NULL; PyErr_SetString(PyExc_TypeError, "tuple of size 2 expected"); goto error; } @@ -914,7 +914,7 @@ goto error; } if (PyList_Append(res_parts, tmp) < 0) { - Py_DECREF(tmp); + Py_DECREF(tmp); tmp = NULL; goto error; } Py_DECREF(tmp); @@ -926,7 +926,7 @@ goto error; } if (PyList_Append(res_parts, tmp) < 0) { - Py_DECREF(tmp); + Py_DECREF(tmp); tmp = NULL; goto error; } Py_DECREF(tmp); tmp = NULL;