Skip to content

Commit

Permalink
Update tok_parse.c
Browse files Browse the repository at this point in the history
  • Loading branch information
r-barnes authored Jul 19, 2024
1 parent 4fc3bfd commit 8c23031
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/mwparserfromhell/parser/ctokenizer/tok_parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -1557,10 +1557,11 @@ Tokenizer_handle_tag_close_close(Tokenizer *self)
}
Py_XDECREF(so);
Py_XDECREF(sc);
// One of `so` or `sc` failed to allocate so we clean up the
// closing tag and propagate the error by returning NULL.
Py_DECREF(closing);
return NULL;
}
// One of `so` or `sc` failed to allocate so we fall through to clean up the
// closing tag and propagate the error by returning NULL.
__attribute__((fallthrough));
case -1:
Py_DECREF(closing);
return NULL;
Expand Down

0 comments on commit 8c23031

Please sign in to comment.