@@ -276,6 +276,7 @@ blpy_dealloc (PyObject *obj)
if (block->next)
block->next->prev = block->prev;
block->block = NULL;
+ Py_TYPE (obj)->tp_free (obj);
}
/* Given a block, and a block_object that has previously been
@@ -370,6 +371,7 @@ blpy_block_syms_dealloc (PyObject *obj)
block_syms_iterator_object *iter_obj = (block_syms_iterator_object *) obj;
Py_XDECREF (iter_obj->source);
+ Py_TYPE (obj)->tp_free (obj);
}
/* Implementation of gdb.Block.is_valid (self) -> Boolean.
@@ -83,6 +83,7 @@ bpfinishpy_dealloc (PyObject *self)
Py_XDECREF (self_bpfinish->function_value);
Py_XDECREF (self_bpfinish->return_type);
Py_XDECREF (self_bpfinish->return_value);
+ Py_TYPE (self)->tp_free (self);
}
/* Triggered when gdbpy_should_stop is about to execute the `stop' callback
@@ -856,6 +856,7 @@ infpy_dealloc (PyObject *obj)
return;
set_inferior_data (inf, infpy_inf_data_key, NULL);
+ Py_TYPE (obj)->tp_free (obj);
}
/* Clear the INFERIOR pointer in an Inferior object and clear the
@@ -156,6 +156,7 @@ stpy_dealloc (PyObject *self)
lazy_string_object *self_string = (lazy_string_object *) self;
xfree (self_string->encoding);
+ Py_TYPE (self)->tp_free (self);
}
/* Low level routine to create a <gdb.LazyString> object.
@@ -369,6 +369,7 @@ ltpy_iterator_dealloc (PyObject *obj)
ltpy_iterator_object *iter_obj = (ltpy_iterator_object *) obj;
Py_DECREF (iter_obj->source);
+ Py_TYPE (obj)->tp_free (obj);
}
/* Return a reference to the line table iterator. */
@@ -357,6 +357,7 @@ sympy_dealloc (PyObject *obj)
if (sym_obj->next)
sym_obj->next->prev = sym_obj->prev;
sym_obj->symbol = NULL;
+ Py_TYPE (obj)->tp_free (obj);
}
/* Implementation of
@@ -253,6 +253,7 @@ stpy_dealloc (PyObject *obj)
if (symtab->next)
symtab->next->prev = symtab->prev;
symtab->symtab = NULL;
+ Py_TYPE (obj)->tp_free (obj);
}
@@ -1325,6 +1325,7 @@ typy_iterator_dealloc (PyObject *obj)
typy_iterator_object *iter_obj = (typy_iterator_object *) obj;
Py_DECREF (iter_obj->source);
+ Py_TYPE (obj)->tp_free (obj);
}
/* Create a new Type referring to TYPE. */