Skip to content

Commit

Permalink
-.-
Browse files Browse the repository at this point in the history
  • Loading branch information
dey4ss committed Jun 5, 2024
1 parent b5e3cad commit 73c819f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/parser/bison_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4529,7 +4529,7 @@ YYLTYPE yylloc = yyloc_default;
#line 934 "bison_parser.y"
{
if ((yyvsp[0].expr)->type == ExprType::kExprParameter) {
free((yyvsp[0].expr));
delete (yyvsp[0].expr);
yyerror(&yyloc, result, scanner, "Parameter ? is not a valid literal.");
YYERROR;
}
Expand Down
8 changes: 7 additions & 1 deletion src/sql/statements.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,13 @@ JoinDefinition::~JoinDefinition() {
delete left;
delete right;
delete condition;
delete namedColumns;

if (namedColumns) {
for (auto* column : *namedColumns) {
free(column);
}
delete namedColumns;
}
}

SetOperation::SetOperation() : nestedSelectStatement(nullptr), resultOrder(nullptr), resultLimit(nullptr) {}
Expand Down

0 comments on commit 73c819f

Please sign in to comment.