瀏覽代碼
Make fallthrough explicit in tok_parse.c (#326)
* Make fallthrough explicit in tok_parse.c
In response to #325
* Update tok_parse.c
main
Richard Barnes
5 月之前
committed by
GitHub
沒有發現已知的金鑰在資料庫的簽署中
GPG 金鑰 ID: B5690EEEBB952194
共有
1 個檔案被更改,包括
4 行新增 和
0 行删除
-
src/mwparserfromhell/parser/ctokenizer/tok_parse.c
|
|
@@ -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); |
|
|
|