public
Description: An implementation of markdown in C, using a PEG grammar
Clone URL: git://github.com/jgm/peg-markdown.git
Free unused element in AtxHeading parser.
jgm (author)
Wed Jun 11 22:00:54 -0700 2008
commit  2217d5a91fd30689fc2b687f80c150f49723b192
tree    4a95bed6e3ecd686843cea188d4ebd1586542add
parent  88bcde615b466a83a817a6a78378461c65f54954
...
278
279
280
281
 
 
282
283
284
...
278
279
280
 
281
282
283
284
285
0
@@ -278,7 +278,8 @@ AtxStart = < ( "######" | "#####" | "####" | "###" | "##" | "#" ) >
0
             { $$ = mk_element(H1 + (strlen(yytext) - 1)); }
0
 
0
 AtxHeading = s:AtxStart Sp a:StartList ( AtxInline { a = cons($$, a); } )+ (Sp '#'* Sp)? Newline
0
- { $$ = mk_list(s->key, a); }
0
+ { $$ = mk_list(s->key, a);
0
+ free(s); }
0
 
0
 SetextHeading = SetextHeading1 | SetextHeading2
0
 

Comments

    No one has commented yet.