Mercurial > hgrepos > Python > libs > ConfigMix
diff configmix/_speedups.c @ 562:f75c5b13a1d7
FIX: Memory-leak
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Thu, 06 Jan 2022 20:13:10 +0100 |
| parents | c51f484387ee |
| children | 44e18fbf7741 |
line wrap: on
line diff
--- a/configmix/_speedups.c Thu Jan 06 20:03:01 2022 +0100 +++ b/configmix/_speedups.c Thu Jan 06 20:13:10 2022 +0100 @@ -818,6 +818,7 @@ py_clear_ref(&tmp); goto error; } + py_clear_ref(&varname); /* Unpack the result tuple */ /* borrowed -- cannot fail -- need ownership */ varname = Py_NewRef(PyTuple_GetItem(tmp, 0)); @@ -1041,6 +1042,7 @@ py_clear_ref(&tmp); goto error; } + py_clear_ref(&varname); /* Unpack the result tuple */ /* borrowed -- cannot fail -- need ownership */ varname = Py_NewRef(PyTuple_GetItem(tmp, 0));
