Skip to content

Commit

Permalink
Delete tree after use.
Browse files Browse the repository at this point in the history
  • Loading branch information
lawmurray committed Oct 26, 2023
1 parent 8eee233 commit b4b4c8a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/parser/Parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ void Parser::parse(const std::string& file, Entity& global) {
assert(ends.empty());

ts_query_cursor_delete(cursor);
ts_tree_delete(tree);
}

void Parser::translate(const std::string_view& comment, Entity& entity) {
Expand Down

0 comments on commit b4b4c8a

Please sign in to comment.