Skip to content
This repository has been archived by the owner on Dec 1, 2022. It is now read-only.

Commit

Permalink
fix memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
nevermore3 committed Jun 1, 2021
1 parent ff77e70 commit c9f28be
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/validator/FindPathValidator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ Status FindPathValidator::validateWhere(WhereClause* where) {
return Status::SemanticError("Not support `%s' in where sentence.",
expr->toString().c_str());
}
auto filter = ExpressionUtils::rewriteLabelAttr2EdgeProp(expr);
where->setFilter(ExpressionUtils::rewriteLabelAttr2EdgeProp(expr));
auto filter = where->filter();

auto typeStatus = deduceExprType(filter);
NG_RETURN_IF_ERROR(typeStatus);
Expand Down

0 comments on commit c9f28be

Please sign in to comment.