A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2012-July/120933.html below:

[Python-Dev] cpython: Actually initialize __main__.__loader__ with loader instances, not the

[Python-Dev] cpython: Actually initialize __main__.__loader__ with loader instances, not the [Python-Dev] cpython: Actually initialize __main__.__loader__ with loader instances, not theAntoine Pitrou solipsis at pitrou.net
Sun Jul 15 14:43:31 CEST 2012
On Sun, 15 Jul 2012 11:10:50 +0200 (CEST)
nick.coghlan <python-checkins at 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


More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4