summaryrefslogtreecommitdiff
path: root/Python/compile.c
diff options
context:
space:
mode:
authorMichael W. Hudson <mwh@python.net>2004-08-03 10:24:03 +0000
committerMichael W. Hudson <mwh@python.net>2004-08-03 10:24:03 +0000
commitfe131e356e6c2a3b52104d8e4e8b9d6428656810 (patch)
treeef33494998062012eca025384f933fd6dfccda4d /Python/compile.c
parent7d3461deaaa0114fd33358ced067aedd215de959 (diff)
downloadcpython-fe131e356e6c2a3b52104d8e4e8b9d6428656810.tar.gz
Don't intern the filename of a file being compiled.
Hard to believe it ever helped anything, and it hurts finding reference leaks.
Diffstat (limited to 'Python/compile.c')
-rw-r--r--Python/compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/compile.c b/Python/compile.c
index 0b5ba6cd38..5abf2b8876 100644
--- a/Python/compile.c
+++ b/Python/compile.c
@@ -4731,7 +4731,7 @@ jcompile(node *n, const char *filename, struct compiling *base,
cellvars = dict_keys_inorder(sc.c_cellvars, 0);
freevars = dict_keys_inorder(sc.c_freevars,
PyTuple_GET_SIZE(cellvars));
- filename = PyString_InternFromString(sc.c_filename);
+ filename = PyString_FromString(sc.c_filename);
name = PyString_InternFromString(sc.c_name);
if (!PyErr_Occurred())
co = PyCode_New(sc.c_argcount,