dbms: fixed leak [#CONV-8383].

This commit is contained in:
Alexey Milovidov 2013-09-14 00:39:34 +00:00
parent a47faab727
commit 25e36aebc4

View File

@ -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;
}