Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd327159

Browse files
authored
gh-91048: Fix error path result in _remote_debugging_module (#134347)
1 parent6856a04 commitd327159

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
gotoresult_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
gotoresult_err;
15701570
}
15711571

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp