Skip to content

Commit a76e4bc

Browse files
committed
smash diff
1 parent c13af3c commit a76e4bc

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Modules/_lzmamodule.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -856,7 +856,6 @@ Compressor_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
856856
goto error;
857857
}
858858

859-
PyObject_GC_Track(self);
860859
return (PyObject *)self;
861860

862861
error:
@@ -874,7 +873,7 @@ Compressor_dealloc(PyObject *op)
874873
if (self->lock != NULL) {
875874
PyThread_free_lock(self->lock);
876875
}
877-
PyObject_GC_Del(self);
876+
tp->tp_free(self);
878877
Py_DECREF(tp);
879878
}
880879

@@ -1306,7 +1305,6 @@ _lzma_LZMADecompressor_impl(PyTypeObject *type, int format,
13061305
goto error;
13071306
}
13081307

1309-
PyObject_GC_Track(self);
13101308
return (PyObject *)self;
13111309

13121310
error:
@@ -1328,7 +1326,7 @@ Decompressor_dealloc(PyObject *op)
13281326
if (self->lock != NULL) {
13291327
PyThread_free_lock(self->lock);
13301328
}
1331-
PyObject_GC_Del(self);
1329+
tp->tp_free(self);
13321330
Py_DECREF(tp);
13331331
}
13341332

0 commit comments

Comments
 (0)