瀏覽代碼

Fix C tokenizer leaking memory.

tags/v0.4.1
Ben Kurtovic 9 年之前
父節點
當前提交
40fed91806
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      mwparserfromhell/parser/ctokenizer/tok_parse.c

+ 1
- 1
mwparserfromhell/parser/ctokenizer/tok_parse.c 查看文件

@@ -1420,7 +1420,7 @@ static PyObject* Tokenizer_handle_blacklisted_tag(Tokenizer* self)
buffer = Textbuffer_new();
if (!buffer)
return NULL;
while ((this = Tokenizer_READ(self, 0))) {
while ((this = Tokenizer_READ(self, 0)), 1) {
if (this == '>') {
buf_tmp = Textbuffer_render(buffer);
if (!buf_tmp)


Loading…
取消
儲存