diff options
author | Kristján Valur Jónsson <kristjan@ccpgames.com> | 2009-03-31 17:47:50 (GMT) |
---|---|---|
committer | Kristján Valur Jónsson <kristjan@ccpgames.com> | 2009-03-31 17:47:50 (GMT) |
commit | 92af5d9fec99d5a0caef391eabf55e425ec7e615 (patch) | |
tree | b94bebb31fd4e1a3009939e4ac6e9c18b046fb05 | |
parent | e1b0445ff97ef58d9888091df6c9bc2d3917ad0f (diff) | |
download | cpython-92af5d9fec99d5a0caef391eabf55e425ec7e615.zip cpython-92af5d9fec99d5a0caef391eabf55e425ec7e615.tar.gz cpython-92af5d9fec99d5a0caef391eabf55e425ec7e615.tar.bz2 |
Fix a leaking "pathname" in import.c
-rw-r--r-- | Python/import.c | 1 |
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; } |