Skip to content

Commit

Permalink
Fix memory leak in parse_ie_keyword_arg
Browse files Browse the repository at this point in the history
`kwd_arg` would never get freed when there was a parse error in
`parse_ie_keyword_arg`.

Closes #2656
  • Loading branch information
glebm authored and xzyfer committed Nov 25, 2018
1 parent c93f058 commit eb15533
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 @@ -1918,7 +1918,7 @@ namespace Sass {

String_Obj Parser::parse_ie_keyword_arg()
{
String_Schema_Ptr kwd_arg = SASS_MEMORY_NEW(String_Schema, pstate, 3);
String_Schema_Obj kwd_arg = SASS_MEMORY_NEW(String_Schema, pstate, 3);
if (lex< variable >()) {
kwd_arg->append(SASS_MEMORY_NEW(Variable, pstate, Util::normalize_underscores(lexed)));
} else {
Expand Down

0 comments on commit eb15533

Please sign in to comment.