mirror of
https://github.com/prometheus/prometheus.git
synced 2025-01-13 06:47:28 -08: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.injecting = false
|
||||||
p.parseErrors = nil
|
p.parseErrors = nil
|
||||||
|
p.generatedParserResult = nil
|
||||||
|
|
||||||
// Clear lexer struct before reusing.
|
// Clear lexer struct before reusing.
|
||||||
p.lex = Lexer{
|
p.lex = Lexer{
|
||||||
|
|
Loading…
Reference in a new issue