Browse Source

Fix C tokenizer leaking memory.

tags/v0.4.1
Ben Kurtovic 9 years ago
parent
commit
40fed91806
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      mwparserfromhell/parser/ctokenizer/tok_parse.c

+ 1
- 1
mwparserfromhell/parser/ctokenizer/tok_parse.c View File

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


Loading…
Cancel
Save