| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -727,6 +727,7 @@ static PyObject *Py_convert_to_string(PyObject *self, PyObject *args, PyObject * | |||
| 727 | 727 | return NULL; | |
| 728 | 728 | } | |
| 729 | 729 | codes[i] = PyBytes_AsString(item); | |
| 730 | + Py_DECREF(item); | ||
| 730 | 731 | if (codes[i] == NULL) { | |
| 731 | 732 | return NULL; | |
| 732 | 733 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -240,6 +240,7 @@ class PathGenerator | |||
| 240 | 240 | throw py::exception(); | |
| 241 | 241 | } | |
| 242 | 242 | if (!convert_path(item, &path)) { | |
| 243 | + Py_DECREF(item); | ||
| 243 | 244 | throw py::exception(); | |
| 244 | 245 | } | |
| 245 | 246 | Py_DECREF(item); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments