| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1556,7 +1556,7 @@ get_stack_trace(PyObject* self, PyObject* args) | |||
| 1556 | 1556 | &address_of_current_frame) | |
| 1557 | 1557 | < 0) | |
| 1558 | 1558 | { | |
| 1559 | - Py_DECREF(result); | ||
| 1559 | + Py_CLEAR(result); | ||
| 1560 | 1560 | goto result_err; | |
| 1561 | 1561 | } | |
| 1562 | 1562 | ||
@@ -1565,7 +1565,7 @@ get_stack_trace(PyObject* self, PyObject* args) | |||
| 1565 | 1565 | } | |
| 1566 | 1566 | ||
| 1567 | 1567 | if (PyList_Append(result, frame_info) == -1) { | |
| 1568 | - Py_DECREF(result); | ||
| 1568 | + Py_CLEAR(result); | ||
| 1569 | 1569 | goto result_err; | |
| 1570 | 1570 | } | |
| 1571 | 1571 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments