summaryrefslogtreecommitdiff
path: root/Python
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2020-03-03 19:43:29 +0200
committerGitHub <noreply@github.com>2020-03-03 19:43:29 +0200
commitae75a294352e9b9487f5dc8e88f068e7e6974dc2 (patch)
tree62236c148db6761d1ef18a50a22d05258e160bf0 /Python
parent91fe4142642286b65c166f7b6e27de16f42b1286 (diff)
downloadcpython-git-ae75a294352e9b9487f5dc8e88f068e7e6974dc2.tar.gz
bpo-39831: Remove outdated comment. (GH-18764)
Diffstat (limited to 'Python')
-rw-r--r--Python/_warnings.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/Python/_warnings.c b/Python/_warnings.c
index 92378faa61..39f8033cd9 100644
--- a/Python/_warnings.c
+++ b/Python/_warnings.c
@@ -889,11 +889,9 @@ setup_context(Py_ssize_t stack_level, PyObject **filename, int *lineno,
return 1;
handle_error:
- /* filename not XDECREF'ed here as there is no way to jump here with a
- dangling reference. */
Py_XDECREF(*registry);
Py_XDECREF(*module);
- Py_XDECREF(*filename);
+ Py_DECREF(*filename);
return 0;
}