On Sun, 15 Jul 2012 11:10:50 +0200 (CEST) nick.coghlan <python-check...@python.org> wrote: > tstate = PyThreadState_GET(); > interp = tstate->interp; > - loader = PyObject_GetAttrString(interp->importlib, loader_name); > + loader_type = PyObject_GetAttrString(interp->importlib, loader_name); > + if (loader_type == NULL) { > + return -1; > + } > + loader = PyObject_CallFunction(loader_type, "ss", "__main__", filename);
I think you may have a refleak on loader_type here. Regards Antoine. -- Software development and contracting: http://pro.pitrou.net _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com