[Python-3000-checkins] r58649 - python/branches/py3k/Objects/codeobject.c

georg.brandl python-3000-checkins at python.org
Wed Oct 24 23:14:08 CEST 2007


Author: georg.brandl
Date: Wed Oct 24 23:14:07 2007
New Revision: 58649

Modified:
   python/branches/py3k/Objects/codeobject.c
Log:
Fix a refleak for `filename', introduced in rev. 58466.
Also remove an unnecessary incref/decref for `name'.


Modified: python/branches/py3k/Objects/codeobject.c
==============================================================================
--- python/branches/py3k/Objects/codeobject.c	(original)
+++ python/branches/py3k/Objects/codeobject.c	Wed Oct 24 23:14:07 2007
@@ -66,9 +66,6 @@
 		PyErr_BadInternalCall();
 		return NULL;
 	}
-	Py_INCREF(name);
-	Py_INCREF(filename);
-
 	intern_strings(names);
 	intern_strings(varnames);
 	intern_strings(freevars);
@@ -110,7 +107,6 @@
 		co->co_lnotab = lnotab;
                 co->co_zombieframe = NULL;
 	}
-	Py_DECREF(name);
 	return co;
 }
 


More information about the Python-3000-checkins mailing list