diff --git a/gstlal-burst/python/snglbursttable.c b/gstlal-burst/python/snglbursttable.c index 1d90e19e04ab76bc5991e62daa5a55446beaa22d..20ac3d10e1922e62c31638a1bf195458d64943b3 100644 --- a/gstlal-burst/python/snglbursttable.c +++ b/gstlal-burst/python/snglbursttable.c @@ -139,6 +139,12 @@ static PyObject *__new__(PyTypeObject *type, PyObject *args, PyObject *kwds) } +static void __del__(PyObject *self) +{ + Py_TYPE(self)->tp_free(self); +} + + static PyObject *from_buffer(PyObject *cls, PyObject *args) { const char *data; @@ -208,6 +214,7 @@ static PyTypeObject gstlal_GSTLALSnglBurst_Type = { .tp_getset = getset, .tp_name = MODULE_NAME ".GSTLALSnglBurst", .tp_new = __new__, + .tp_dealloc = __del__, };