Skip to content

Commit d32a93a

Browse files
committed
use PyObject_GC_Del for clarity
1 parent 5d6ee9c commit d32a93a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Modules/_lzmamodule.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -876,7 +876,7 @@ Compressor_dealloc(PyObject *op)
876876
if (self->lock != NULL) {
877877
PyThread_free_lock(self->lock);
878878
}
879-
tp->tp_free(self);
879+
PyObject_GC_Del(self);
880880
Py_DECREF(tp);
881881
}
882882

@@ -1331,7 +1331,7 @@ Decompressor_dealloc(PyObject *op)
13311331
if (self->lock != NULL) {
13321332
PyThread_free_lock(self->lock);
13331333
}
1334-
tp->tp_free(self);
1334+
PyObject_GC_Del(self);
13351335
Py_DECREF(tp);
13361336
}
13371337

0 commit comments

Comments
 (0)