Skip to content

Commit eb15533

Browse files
glebmxzyfer
authored andcommitted
Fix memory leak in parse_ie_keyword_arg
`kwd_arg` would never get freed when there was a parse error in `parse_ie_keyword_arg`. Closes #2656
1 parent c93f058 commit eb15533

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/parser.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1918,7 +1918,7 @@ namespace Sass {
19181918

19191919
String_Obj Parser::parse_ie_keyword_arg()
19201920
{
1921-
String_Schema_Ptr kwd_arg = SASS_MEMORY_NEW(String_Schema, pstate, 3);
1921+
String_Schema_Obj kwd_arg = SASS_MEMORY_NEW(String_Schema, pstate, 3);
19221922
if (lex< variable >()) {
19231923
kwd_arg->append(SASS_MEMORY_NEW(Variable, pstate, Util::normalize_underscores(lexed)));
19241924
} else {

0 commit comments

Comments
 (0)