Skip to content

Commit ac01008

Browse files
Fix memory leak in row_from_string
1 parent a1129ab commit ac01008

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

extensions/table.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,8 @@ static table_row *row_from_string(cmark_syntax_extension *self,
178178
node_cell *cell = append_row_cell(parser->mem, row);
179179
if (!cell) {
180180
int_overflow_abort = 1;
181+
cmark_strbuf_free(cell_buf);
182+
parser->mem->free(cell_buf);
181183
break;
182184
}
183185
cell->buf = cell_buf;

0 commit comments

Comments
 (0)