Skip to content

Commit

Permalink
Update on "Fix Storage destruction GC tracking"
Browse files Browse the repository at this point in the history
[ghstack-poisoned]
  • Loading branch information
albanD committed Feb 3, 2023
1 parent 1fccd6d commit 240a583
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torch/csrc/Storage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ static void THPStorage_subclass_dealloc(PyObject* self) {
THPStorage* _self = (THPStorage*)self;
// Some subclass of StorageBase are GC-tracked objects even
// though the base class is not.
auto *type = Py_TYPE(self);
auto* type = Py_TYPE(self);
if (PyType_HasFeature(type, Py_TPFLAGS_HAVE_GC) != 0) {
PyObject_GC_UnTrack(self);
}
Expand Down

0 comments on commit 240a583

Please sign in to comment.