Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
2
210360228
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Summer2021
210360228
Commits
1a97b435
Unverified
Commit
1a97b435
authored
4 years ago
by
cpw
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix mem leak in list comprehension. (#557)
parent
9a39a505
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/parser/parser.yy
+3
-0
3 additions, 0 deletions
src/parser/parser.yy
with
3 additions
and
0 deletions
src/parser/parser.yy
+
3
−
0
View file @
1a97b435
...
...
@@ -750,6 +750,7 @@ list_comprehension_expression
auto *expr = new ListComprehensionExpression(new std::string(innerVar), $4, $6, nullptr);
nebula::graph::ParserUtil::rewriteLC(qctx, expr, innerVar);
$$ = expr;
delete $2;
}
| L_BRACKET expression KW_IN expression PIPE expression R_BRACKET {
if ($2->kind() != Expression::Kind::kLabel) {
...
...
@@ -759,6 +760,7 @@ list_comprehension_expression
auto *expr = new ListComprehensionExpression(new std::string(innerVar), $4, nullptr, $6);
nebula::graph::ParserUtil::rewriteLC(qctx, expr, innerVar);
$$ = expr;
delete $2;
}
| L_BRACKET expression KW_IN expression KW_WHERE expression PIPE expression R_BRACKET {
if ($2->kind() != Expression::Kind::kLabel) {
...
...
@@ -768,6 +770,7 @@ list_comprehension_expression
auto *expr = new ListComprehensionExpression(new std::string(innerVar), $4, $6, $8);
nebula::graph::ParserUtil::rewriteLC(qctx, expr, innerVar);
$$ = expr;
delete $2;
}
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment