Mercurial > cpython-lru_cache-weakref
diff Python/bltinmodule.c @ 2198:27557e70a8f0 legacy-trunk
fix import related leaks
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Fri, 20 Jan 1995 16:53:12 +0000 |
| parents | e54b8654f938 |
| children | 94b84535c34e |
line wrap: on
line diff
--- a/Python/bltinmodule.c Fri Jan 20 16:52:42 1995 +0000 +++ b/Python/bltinmodule.c Fri Jan 20 16:53:12 1995 +0000 @@ -47,14 +47,10 @@ object *args; { char *name; - object *m; if (!newgetargs(args, "s:__import__", &name)) return NULL; - m = import_module(name); - XINCREF(m); - - return m; + return import_module(name); }
