Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Simplify call to Py_CLEAR
Idea by @picnixz
  • Loading branch information
hartwork committed Sep 28, 2025
commit f8c58a3040b2deb9b8d37196a4697c9ebf04abd6
4 changes: 1 addition & 3 deletions Modules/pyexpat.c
Original file line number Diff line number Diff line change
Expand Up @@ -1549,9 +1549,7 @@ xmlparse_dealloc(PyObject *op)
XML_ParserFree(self->itself);
}
self->itself = NULL;
if (self->parent != NULL) {
Py_CLEAR(self->parent);
}
Py_CLEAR(self->parent);
Comment thread
picnixz marked this conversation as resolved.

if (self->handlers != NULL) {
PyMem_Free(self->handlers);
Expand Down