mirror of
https://github.com/prometheus/prometheus
synced 2025-01-13 18:33:34 +00:00
Merge pull request #7132 from roidelapluie/clpql
promql/parser: Cleanup generatedParserResult accross reuse
This commit is contained in:
commit
1d6532e9e5
@ -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{
|
||||
|
Loading…
Reference in New Issue
Block a user