[Python-checkins] r43660 - python/trunk/Python/import.c
thomas.wouters
python-checkins at python.org
Wed Apr 5 15:39:39 CEST 2006
Author: thomas.wouters
Date: Wed Apr 5 15:39:37 2006
New Revision: 43660
Modified:
python/trunk/Python/import.c
Log:
Fix refleak in __import__("") (probably the cause of the 2 refleaks in
test_builtin.)
Modified: python/trunk/Python/import.c
==============================================================================
--- python/trunk/Python/import.c (original)
+++ python/trunk/Python/import.c Wed Apr 5 15:39:37 2006
@@ -1938,6 +1938,8 @@
/* If tail is Py_None, both get_parent and load_next found
an empty module name: someone called __import__("") or
doctored faulty bytecode */
+ Py_DECREF(tail);
+ Py_DECREF(head);
PyErr_SetString(PyExc_ValueError,
"Empty module name");
return NULL;
More information about the Python-checkins
mailing list