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

Commit387f725

Browse files
authored
gh-90716: Fix pylong_int_from_string() refleak (#99094)
Fix validated by: $ ./python -m test -R 3:3 test_int Tests result: SUCCESS
1 parentc0bf760 commit387f725

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎Objects/longobject.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2376,6 +2376,7 @@ pylong_int_from_string(const char *start, const char *end, PyLongObject **res)
23762376
gotoerror;
23772377
}
23782378
if (!PyLong_Check(result)) {
2379+
Py_DECREF(result);
23792380
PyErr_SetString(PyExc_TypeError,
23802381
"_pylong.int_from_string did not return an int");
23812382
gotoerror;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp