Merge pull request #7132 from roidelapluie/clpql

promql/parser: Cleanup generatedParserResult accross reuse
This commit is contained in:
Frederic Branczyk 2020-04-16 15:03:42 +02:00 committed by GitHub
commit 1d6532e9e5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -168,6 +168,7 @@ func newParser(input string) *parser {
p.injecting = false
p.parseErrors = nil
p.generatedParserResult = nil
// Clear lexer struct before reusing.
p.lex = Lexer{