Fix a leaking "pathname" in import.c

parent e1b0445f
...@@ -3114,6 +3114,7 @@ imp_load_source(PyObject *self, PyObject *args) ...@@ -3114,6 +3114,7 @@ imp_load_source(PyObject *self, PyObject *args)
return NULL; return NULL;
} }
m = load_source_module(name, pathname, fp); m = load_source_module(name, pathname, fp);
PyMem_Free(pathname);
fclose(fp); fclose(fp);
return m; return m;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment