[Python-Dev] cpython: Actually initialize main.loader with loader instances, not the (original) (raw)
Antoine Pitrou solipsis at pitrou.net
Sun Jul 15 14:43:31 CEST 2012
- Previous message: [Python-Dev] cpython: Take the first step in resolving the messy pkgutil vs importlib edge cases by
- Next message: [Python-Dev] early startup error reporting failure
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Sun, 15 Jul 2012 11:10:50 +0200 (CEST) nick.coghlan <python-checkins at python.org> wrote:
tstate = PyThreadStateGET(); interp = tstate->interp; - loader = PyObjectGetAttrString(interp->importlib, loadername); + loadertype = PyObjectGetAttrString(interp->importlib, loadername); + if (loadertype == NULL) { + return -1; + } + loader = PyObjectCallFunction(loadertype, "ss", "main", filename);
I think you may have a refleak on loader_type here.
Regards
Antoine.
-- Software development and contracting: http://pro.pitrou.net
- Previous message: [Python-Dev] cpython: Take the first step in resolving the messy pkgutil vs importlib edge cases by
- Next message: [Python-Dev] early startup error reporting failure
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]