]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Plug a leak in code_dealloc() (and reordered the deallocs to match the
authorGuido van Rossum <guido@python.org>
Fri, 25 Jul 1997 20:13:49 +0000 (20:13 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 25 Jul 1997 20:13:49 +0000 (20:13 +0000)
order of the variables in the declarations).

Also removed an entry in the TODO list that's done.

Python/compile.c

index 5eb52d5f814725269269d3da1b876c30e3a6bba3..3962b635f6e9449804a02a7a614d279c6e532b60 100644 (file)
@@ -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);
 }