mercurial/cext/osutil.c
changeset 46374 e92ca942ddca
parent 45174 f93a4e3d35ab
child 46819 d4ba4d51f85f
--- a/mercurial/cext/osutil.c	Wed Jan 20 14:47:13 2021 +0100
+++ b/mercurial/cext/osutil.c	Mon Dec 14 10:44:29 2020 +0100
@@ -119,7 +119,7 @@
 
 static void listdir_stat_dealloc(PyObject *o)
 {
-	o->ob_type->tp_free(o);
+	Py_TYPE(o)->tp_free(o);
 }
 
 static PyObject *listdir_stat_getitem(PyObject *self, PyObject *key)