]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-39831: Remove outdated comment. (GH-18764)
authorSerhiy Storchaka <storchaka@gmail.com>
Tue, 3 Mar 2020 17:43:29 +0000 (19:43 +0200)
committerGitHub <noreply@github.com>
Tue, 3 Mar 2020 17:43:29 +0000 (19:43 +0200)
Python/_warnings.c

index 92378faa61f3e3fc3794496b5148cee504b74bf5..39f8033cd906a6cacc973955645b2e28de5e9588 100644 (file)
@@ -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;
 }