Commit 768606db authored by Sjoerd Mullender's avatar Sjoerd Mullender

Also count UNREF's as freeing an object (only relevant when

COUNT_ALLOCS is defined).
parent 3dc709cb
......@@ -295,11 +295,12 @@ environment the global variable trick is not safe.)
#ifndef Py_TRACE_REFS
#ifdef COUNT_ALLOCS
#define _Py_Dealloc(op) ((op)->ob_type->tp_free++, (*(op)->ob_type->tp_dealloc)((PyObject *)(op)))
#define _Py_ForgetReference(op) ((op)->ob_type->tp_free++)
#else
#define _Py_Dealloc(op) (*(op)->ob_type->tp_dealloc)((PyObject *)(op))
#endif
#define _Py_ForgetReference(op) /*empty*/
#endif
#endif
#ifdef COUNT_ALLOCS
extern void inc_count Py_PROTO((PyTypeObject *));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment