summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristján Valur Jónsson <kristjan@ccpgames.com>2009-03-31 17:47:50 (GMT)
committerKristján Valur Jónsson <kristjan@ccpgames.com>2009-03-31 17:47:50 (GMT)
commit92af5d9fec99d5a0caef391eabf55e425ec7e615 (patch)
treeb94bebb31fd4e1a3009939e4ac6e9c18b046fb05
parente1b0445ff97ef58d9888091df6c9bc2d3917ad0f (diff)
downloadcpython-92af5d9fec99d5a0caef391eabf55e425ec7e615.zip
cpython-92af5d9fec99d5a0caef391eabf55e425ec7e615.tar.gz
cpython-92af5d9fec99d5a0caef391eabf55e425ec7e615.tar.bz2
Fix a leaking "pathname" in import.c
-rw-r--r--Python/import.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/import.c b/Python/import.c
index 529c3c2..3a3c9f2 100644
--- a/Python/import.c
+++ b/Python/import.c
@@ -3114,6 +3114,7 @@ imp_load_source(PyObject *self, PyObject *args)
return NULL;
}
m = load_source_module(name, pathname, fp);
+ PyMem_Free(pathname);
fclose(fp);
return m;
}