Skip to content

Commit

Permalink
fix potential memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
XZ-X committed Dec 16, 2024
1 parent 7037f03 commit c9ebd08
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,8 @@ namespace Sass {
stack += "\n " + sass::string(File::abs2rel(import_stack[n]->abs_path, cwd, cwd)) +
" imports " + sass::string(File::abs2rel(import_stack[n+1]->abs_path, cwd, cwd));
}
sass_delete_import(import_stack.back());
delete source;
// implement error throw directly until we
// decided how to handle full stack traces
throw Exception::InvalidSyntax(pstate, traces, stack);
Expand Down

0 comments on commit c9ebd08

Please sign in to comment.