Skip to content

Commit ea07fb5

Browse files
add comment about freeing special-chars memory
1 parent 5d99168 commit ea07fb5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/blocks.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ cmark_parser *cmark_parser_new(int options) {
162162
void cmark_parser_free(cmark_parser *parser) {
163163
cmark_mem *mem = parser->mem;
164164

165+
// If any inline syntax extensions were added, free the memory allocated for the special-chars arrays
165166
if (parser->inline_syntax_extensions) {
166167
mem->free(parser->special_chars);
167168
mem->free(parser->skip_chars);

0 commit comments

Comments
 (0)