Skip to content

Commit

Permalink
fixed destructor for bad memory access
Browse files Browse the repository at this point in the history
  • Loading branch information
SwayamInSync committed Aug 16, 2024
1 parent fb04515 commit c76cf36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quaddtype/quaddtype/src/scalar.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ static PyObject * QuadPrecision_repr(QuadPrecisionObject* self)
static void
quad_dealloc(QuadPrecDTypeObject *self)
{
PyArrayDescr_Type.tp_dealloc((PyObject *)self);
Py_TYPE(self)->tp_free((PyObject *)self);
}

PyTypeObject QuadPrecision_Type =
Expand Down

0 comments on commit c76cf36

Please sign in to comment.