summaryrefslogtreecommitdiffstats
path: root/Include/frameobject.h
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2001-03-13 01:58:22 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2001-03-13 01:58:22 (GMT)
commit30c9f3991cfb6a8179ea5dcf15fe17030dfbad05 (patch)
tree21d647853b4e5d0c71bbfd9a9a27ad51e967c90c /Include/frameobject.h
parent93fe96a3c82b11b2bccef29d1f4a422a945e4cdd (diff)
downloadcpython-30c9f3991cfb6a8179ea5dcf15fe17030dfbad05.zip
cpython-30c9f3991cfb6a8179ea5dcf15fe17030dfbad05.tar.gz
cpython-30c9f3991cfb6a8179ea5dcf15fe17030dfbad05.tar.bz2
Variety of small INC/DECREF patches that fix reported memory leaks
with free variables. Thanks to Martin v. Loewis for finding two of the problems. This fixes SF buf 405583. There is also a C API change: PyFrame_New() is reverting to its pre-2.1 signature. The change introduced by nested scopes was a mistake. XXX Is this okay between beta releases? cell_clear(), the GC helper, must decref its reference to break cycles. frame_dealloc() must dealloc all cell vars and free vars in addition to locals. eval_code2() setup code must INCREF cells it copies out of the closure. The STORE_DEREF opcode implementation must DECREF the object it passes to PyCell_Set().
Diffstat (limited to 'Include/frameobject.h')
-rw-r--r--Include/frameobject.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/Include/frameobject.h b/Include/frameobject.h
index d1a310a..10d4935 100644
--- a/Include/frameobject.h
+++ b/Include/frameobject.h
@@ -46,8 +46,7 @@ extern DL_IMPORT(PyTypeObject) PyFrame_Type;
#define PyFrame_Check(op) ((op)->ob_type == &PyFrame_Type)
DL_IMPORT(PyFrameObject *) PyFrame_New(PyThreadState *, PyCodeObject *,
- PyObject *, PyObject *,
- PyObject *);
+ PyObject *, PyObject *);
/* The rest of the interface is specific for frame objects */