Skip to content

Commit e379a71

Browse files
[3.14] gh-91048: Fix error path result in _remote_debugging_module (GH-134347) (#134399)
1 parent 81c348b commit e379a71

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Modules/_remote_debugging_module.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1556,7 +1556,7 @@ get_stack_trace(PyObject* self, PyObject* args)
15561556
&address_of_current_frame)
15571557
< 0)
15581558
{
1559-
Py_DECREF(result);
1559+
Py_CLEAR(result);
15601560
goto result_err;
15611561
}
15621562

@@ -1565,7 +1565,7 @@ get_stack_trace(PyObject* self, PyObject* args)
15651565
}
15661566

15671567
if (PyList_Append(result, frame_info) == -1) {
1568-
Py_DECREF(result);
1568+
Py_CLEAR(result);
15691569
goto result_err;
15701570
}
15711571

0 commit comments

Comments
 (0)