Skip to content

Commit

Permalink
prevent very minor memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinhendricks committed Apr 8, 2023
1 parent 433cfc1 commit 4469240
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -2169,6 +2169,7 @@ static bool handle_in_head_noscript(GumboParser* parser, GumboToken* token) {
switch (token->type) {
case GUMBO_TOKEN_DOCTYPE:
parser_add_parse_error(parser, token);
ignore_token(parser);
return false;
case GUMBO_TOKEN_WHITESPACE:
case GUMBO_TOKEN_COMMENT:
Expand Down

0 comments on commit 4469240

Please sign in to comment.