]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-39831: Remove outdated comment. (GH-18764)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 3 Mar 2020 18:01:09 +0000 (10:01 -0800)
committerGitHub <noreply@github.com>
Tue, 3 Mar 2020 18:01:09 +0000 (10:01 -0800)
(cherry picked from commit ae75a294352e9b9487f5dc8e88f068e7e6974dc2)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Python/_warnings.c

index 87269dd4dbc9eef4ae9350ef12af2bf0f28d20c4..52a13dfc62ccca8c0b19dc27bce7ff53714eb55d 100644 (file)
@@ -886,11 +886,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;
 }