summaryrefslogtreecommitdiffstats
path: root/Python/compile.c
diff options
context:
space:
mode:
authorMichael W. Hudson <mwh@python.net>2004-08-03 10:24:03 (GMT)
committerMichael W. Hudson <mwh@python.net>2004-08-03 10:24:03 (GMT)
commit782d8ffb42e51ccf834f0b4ecc153df2cdb7cd64 (patch)
tree70f70fff8eabf749f2f5bfdabb3ff779ec7f6a6a /Python/compile.c
parent3f3b66823f899868b86722d586a6cd00df4cbad9 (diff)
downloadcpython-782d8ffb42e51ccf834f0b4ecc153df2cdb7cd64.zip
cpython-782d8ffb42e51ccf834f0b4ecc153df2cdb7cd64.tar.gz
cpython-782d8ffb42e51ccf834f0b4ecc153df2cdb7cd64.tar.bz2
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 0b5ba6c..5abf2b8 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,