summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
Diffstat (limited to 'Python')
-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;
}