summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-07-25 20:13:49 (GMT)
committerGuido van Rossum <guido@python.org>1997-07-25 20:13:49 (GMT)
commit275558cb9fb813d02f89560a991a09903a52487c (patch)
tree9b9258fb85400efab54ddbd0aa4ffe99b71e9da7 /Python
parent9a876a45002f7d3b4c57a8b09706d1b69040a948 (diff)
downloadcpython-275558cb9fb813d02f89560a991a09903a52487c.zip
cpython-275558cb9fb813d02f89560a991a09903a52487c.tar.gz
cpython-275558cb9fb813d02f89560a991a09903a52487c.tar.bz2
Plug a leak in code_dealloc() (and reordered the deallocs to match the
order of the variables in the declarations). Also removed an entry in the TODO list that's done.
Diffstat (limited to 'Python')
-rw-r--r--Python/compile.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/Python/compile.c b/Python/compile.c
index 5eb52d5..3962b63 100644
--- a/Python/compile.c
+++ b/Python/compile.c
@@ -36,8 +36,6 @@ PERFORMANCE OF THIS SOFTWARE.
XXX (it's currently the first item of the co_const tuple)
XXX Generate simple jump for break/return outside 'try...finally'
XXX Allow 'continue' inside try-finally
- XXX get rid of SET_LINENO instructions, use JAR's table trick
- XXX (need an option to put them back in, for debugger!)
XXX New 1-byte opcode for loading None
XXX New opcode for loading the initial index for a for loop
XXX other JAR tricks?
@@ -111,9 +109,10 @@ code_dealloc(co)
Py_XDECREF(co->co_code);
Py_XDECREF(co->co_consts);
Py_XDECREF(co->co_names);
+ Py_XDECREF(co->co_varnames);
Py_XDECREF(co->co_filename);
Py_XDECREF(co->co_name);
- Py_XDECREF(co->co_varnames);
+ Py_XDECREF(co->co_lnotab);
PyMem_DEL(co);
}