Mercurial > hgrepos > Python > libs > ConfigMix
changeset 557:ba8f1295e1e2
For consistency reasons: set tmp to NULL if not useable any more
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Tue, 04 Jan 2022 21:33:09 +0100 |
| parents | 3d5ef056134c |
| children | 7a3c311991d7 |
| files | configmix/_speedups.c |
| diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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;
