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

Commitd51a363

Browse files
brandtbuchervstinner
authored andcommitted
bpo-38823: Fix refleak in _tracemalloc init error handling (GH-17235)
1 parent7eee5be commitd51a363

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎Modules/_tracemalloc.c‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1656,8 +1656,10 @@ PyInit__tracemalloc(void)
16561656
if (m==NULL)
16571657
returnNULL;
16581658

1659-
if (tracemalloc_init()<0)
1659+
if (tracemalloc_init()<0) {
1660+
Py_DECREF(m);
16601661
returnNULL;
1662+
}
16611663

16621664
returnm;
16631665
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp