Skip to content

Commit

Permalink
Fix memory leak in Parser::parse_media_query (#3059)
Browse files Browse the repository at this point in the history
  • Loading branch information
xzyfer authored Feb 12, 2020
1 parent bf6ccae commit 16f76e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2242,7 +2242,7 @@ namespace Sass {

while (lex_css < kwd_and >()) media_query->append(parse_media_expression());
if (lex < identifier_schema >()) {
String_Schema* schema = SASS_MEMORY_NEW(String_Schema, pstate);
String_Schema_Obj schema = SASS_MEMORY_NEW(String_Schema, pstate);
if (media_query->media_type()) {
schema->append(media_query->media_type());
schema->append(SASS_MEMORY_NEW(String_Constant, pstate, " "));
Expand Down

0 comments on commit 16f76e2

Please sign in to comment.