mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 08:02:02 +00:00
dbms: fixed leak [#CONV-8383].
This commit is contained in:
parent
a47faab727
commit
25e36aebc4
@ -36,6 +36,7 @@ bool ParserAlterQuery::parseImpl(Pos & pos, Pos end, ASTPtr & node, String & exp
|
||||
ASTPtr col_drop;
|
||||
|
||||
ASTAlterQuery * query = new ASTAlterQuery();
|
||||
ASTPtr query_ptr = query;
|
||||
|
||||
ws.ignore(pos, end);
|
||||
if (!s_alter.ignore(pos, end, expected))
|
||||
@ -119,7 +120,7 @@ bool ParserAlterQuery::parseImpl(Pos & pos, Pos end, ASTPtr & node, String & exp
|
||||
while (!parsing_finished);
|
||||
|
||||
query->range = StringRange(begin, end);
|
||||
node = query;
|
||||
node = query_ptr;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user