[Python-checkins] r66701 - python/branches/release25-maint/Modules/_lsprof.c
brett.cannon
python-checkins at python.org
Tue Sep 30 19:47:51 CEST 2008
Author: brett.cannon
Date: Tue Sep 30 19:47:50 2008
New Revision: 66701
Log:
Fix a refleak introduced by r66678 (backport of r66700).
Modified:
python/branches/release25-maint/Modules/_lsprof.c
Modified: python/branches/release25-maint/Modules/_lsprof.c
==============================================================================
--- python/branches/release25-maint/Modules/_lsprof.c (original)
+++ python/branches/release25-maint/Modules/_lsprof.c Tue Sep 30 19:47:50 2008
@@ -150,16 +150,7 @@
}
Py_DECREF(o);
if (PyErr_Occurred()) {
- PyObject *context = (PyObject *)pObj;
- /* May have been called by profiler_dealloc(). */
- if (context->ob_refcnt < 1) {
- context = PyString_FromString("profiler calling an "
- "external timer");
- if (context == NULL) {
- return 0;
- }
- }
- PyErr_WriteUnraisable(context);
+ PyErr_WriteUnraisable(pObj->externalTimer);
return 0;
}
return result;
More information about the Python-checkins
mailing list