Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
Fix memory leak introduced in March
Browse files Browse the repository at this point in the history
This memory leak was introduced in
sass/libsass@205dc65.

This results in exactly the same number of ASAN errors (16) as completely
reverting that commit.
  • Loading branch information
glebm authored and xzyfer committed Nov 20, 2018
1 parent 3e60b12 commit f442421
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/eval.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -960,8 +960,8 @@ namespace Sass {
}

if (Cast<String_Schema>(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);
Expand Down

0 comments on commit f442421

Please sign in to comment.