From eb15533b07773c30dc03c9d742865604f47120ef Mon Sep 17 00:00:00 2001 From: Gleb Mazovetskiy Date: Sun, 25 Nov 2018 12:20:43 +0000 Subject: [PATCH] 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 --- src/parser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parser.cpp b/src/parser.cpp index 374ffa138..516d593db 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -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 {