From f442421e332444d2b2440cae4ea41e3c5fdee03e Mon Sep 17 00:00:00 2001 From: Gleb Mazovetskiy Date: Mon, 19 Nov 2018 23:08:07 +0000 Subject: [PATCH] Fix memory leak introduced in March This memory leak was introduced in https://github.com/sass/libsass/commit/205dc65d0f1af1f5f715080432192195d64256be. This results in exactly the same number of ASAN errors (16) as completely reverting that commit. --- src/eval.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/eval.cpp b/src/eval.cpp index c92346d51..7ae6bae5b 100644 --- a/src/eval.cpp +++ b/src/eval.cpp @@ -960,8 +960,8 @@ namespace Sass { } if (Cast(c->sname())) { - Expression_Ptr evaluated_name = c->sname()->perform(this); - Expression_Ptr evaluated_args = c->arguments()->perform(this); + Expression_Obj evaluated_name = c->sname()->perform(this); + Expression_Obj evaluated_args = c->arguments()->perform(this); std::string str(evaluated_name->to_string()); str += evaluated_args->to_string(); return SASS_MEMORY_NEW(String_Constant, c->pstate(), str);