Skip to content

Commit 57fb292

Browse files
bpo-39831: Remove outdated comment. (GH-18764)
(cherry picked from commit ae75a29) Co-authored-by: Serhiy Storchaka <[email protected]>
1 parent 2aa694d commit 57fb292

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Python/_warnings.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -886,11 +886,9 @@ setup_context(Py_ssize_t stack_level, PyObject **filename, int *lineno,
886886
return 1;
887887

888888
handle_error:
889-
/* filename not XDECREF'ed here as there is no way to jump here with a
890-
dangling reference. */
891889
Py_XDECREF(*registry);
892890
Py_XDECREF(*module);
893-
Py_XDECREF(*filename);
891+
Py_DECREF(*filename);
894892
return 0;
895893
}
896894

0 commit comments

Comments
 (0)