Skip to content
Prev Previous commit
Next Next commit
fix dealloc function
  • Loading branch information
koubaa committed Aug 31, 2020
commit 4bcb57f404ae460e4efabe08e34f07948e0a78b0
2 changes: 1 addition & 1 deletion Modules/md5module.c
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ newMD5object(MD5State * st)
static void
MD5_dealloc(PyObject *ptr)
{
PyObject *tp = Py_TYPE(ptr);
PyTypeObject *tp = Py_TYPE(ptr);
PyObject_Del(ptr);
Py_DECREF(tp);
}
Expand Down
2 changes: 1 addition & 1 deletion Modules/sha1module.c
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ newSHA1object(SHA1State *st)
static void
SHA1_dealloc(PyObject *ptr)
{
PyObject *tp = Py_TYPE(ptr);
PyTypeObject *tp = Py_TYPE(ptr);
PyObject_Del(ptr);
Py_DECREF(tp);
}
Expand Down
2 changes: 1 addition & 1 deletion Modules/sha512module.c
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ static SHAobject *newSHA512object(SHA512State *st)
static void
SHA512_dealloc(PyObject *ptr)
{
PyObject *tp = Py_TYPE(ptr);
PyTypeObject *tp = Py_TYPE(ptr);
PyObject_Del(ptr);
Py_DECREF(tp);
}
Expand Down