Skip to content

Commit caae331

Browse files
committed
pyexpat: Fix mistaken bypass of call to XML_FreeContentModel
1 parent 5e04f8a commit caae331

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/pyexpat.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ my_ElementDeclHandler(void *userData,
642642
PyObject *modelobj, *nameobj;
643643

644644
if (PyErr_Occurred())
645-
return;
645+
goto finally;
646646

647647
if (flush_character_buffer(self) < 0)
648648
goto finally;

0 commit comments

Comments
 (0)