From d10759f6edb713e945d1caf19d74ea4e12da7894 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Mon, 7 Nov 2011 13:00:05 +0100 Subject: Make _PyUnicode_FromId return borrowed references. http://mail.python.org/pipermail/python-dev/2011-November/114347.html --- Python/_warnings.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'Python/_warnings.c') diff --git a/Python/_warnings.c b/Python/_warnings.c index 5846426531..2e5b0dd4e2 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__"); -- cgit v1.2.1