Skip to content

Commit fc2e18d

Browse files
committed
Visit the type in the compressor and decompressor traverse; move NEWS to Library
1 parent f2a7516 commit fc2e18d

3 files changed

Lines changed: 2 additions & 0 deletions

File tree

Misc/NEWS.d/next/Security/2026-10-23-22-34-55.gh-issue-160535.Zk3dGc.rst renamed to Misc/NEWS.d/next/Library/2026-10-23-22-34-55.gh-issue-160535.Zk3dGc.rst

File renamed without changes.

‎Modules/_zstd/compressor.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -766,6 +766,7 @@ static int
766766
ZstdCompressor_traverse(PyObject *ob, visitproc visit, void *arg)
767767
{
768768
ZstdCompressor *self = ZstdCompressor_CAST(ob);
769+
Py_VISIT(Py_TYPE(ob));
769770
Py_VISIT(self->dict);
770771
return 0;
771772
}

‎Modules/_zstd/decompressor.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -689,6 +689,7 @@ static int
689689
ZstdDecompressor_traverse(PyObject *ob, visitproc visit, void *arg)
690690
{
691691
ZstdDecompressor *self = ZstdDecompressor_CAST(ob);
692+
Py_VISIT(Py_TYPE(ob));
692693
Py_VISIT(self->dict);
693694
return 0;
694695
}

0 commit comments

Comments
 (0)