Skip to content

Commit

Permalink
Make fallthrough explicit in tok_parse.c (#326)
Browse files Browse the repository at this point in the history
* Make fallthrough explicit in tok_parse.c

In response to #325

* Update tok_parse.c
  • Loading branch information
r-barnes authored Jul 20, 2024
1 parent 4e73af2 commit 537e1e1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/mwparserfromhell/parser/ctokenizer/tok_parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -1557,6 +1557,10 @@ 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;
}
case -1:
Py_DECREF(closing);
Expand Down

0 comments on commit 537e1e1

Please sign in to comment.