diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2011-11-07 12:00:05 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2011-11-07 12:00:05 (GMT) |
commit | d10759f6edb713e945d1caf19d74ea4e12da7894 (patch) | |
tree | 81ca1ffcbe397faaa4119100a44dc3c21668da9c /Python | |
parent | e9b11c1cd8ad68e829ae627ef48bdbc940f8e7fb (diff) | |
download | cpython-d10759f6edb713e945d1caf19d74ea4e12da7894.zip cpython-d10759f6edb713e945d1caf19d74ea4e12da7894.tar.gz cpython-d10759f6edb713e945d1caf19d74ea4e12da7894.tar.bz2 |
Make _PyUnicode_FromId return borrowed references.
http://mail.python.org/pipermail/python-dev/2011-November/114347.html
Diffstat (limited to 'Python')
-rw-r--r-- | Python/_warnings.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/Python/_warnings.c b/Python/_warnings.c index 5846426..2e5b0dd 100644 --- a/Python/_warnings.c +++ b/Python/_warnings.c @@ -666,10 +666,8 @@ warnings_warn_explicit(PyObject *self, PyObject *args, PyObject *kwds) if ((tmp = _PyUnicode_FromId(&PyId_get_source)) == NULL) return NULL; - Py_DECREF(tmp); if ((tmp = _PyUnicode_FromId(&PyId_splitlines)) == NULL) return NULL; - Py_DECREF(tmp); /* Check/get the requisite pieces needed for the loader. */ loader = PyDict_GetItemString(module_globals, "__loader__"); |