summaryrefslogtreecommitdiffstats
path: root/Python/bltinmodule.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-01-20 16:53:12 (GMT)
committerGuido van Rossum <guido@python.org>1995-01-20 16:53:12 (GMT)
commit7f9fa97ca22e56a6cde2dfd3f2ba1704db8e463f (patch)
treea8465f24639ad89c59585cad50e91c014adfd9be /Python/bltinmodule.c
parent855d0b36026107d9625a8f5c3ac68d015daf35b2 (diff)
downloadcpython-7f9fa97ca22e56a6cde2dfd3f2ba1704db8e463f.zip
cpython-7f9fa97ca22e56a6cde2dfd3f2ba1704db8e463f.tar.gz
cpython-7f9fa97ca22e56a6cde2dfd3f2ba1704db8e463f.tar.bz2
fix import related leaks
Diffstat (limited to 'Python/bltinmodule.c')
-rw-r--r--Python/bltinmodule.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c
index dbf201e..517aea1 100644
--- a/Python/bltinmodule.c
+++ b/Python/bltinmodule.c
@@ -47,14 +47,10 @@ builtin___import__(self, args)
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);
}