Fix memory leak in postgresql_extensible
This commit is contained in:
@@ -127,6 +127,8 @@ func (p *Postgresql) Gather(acc telegraf.Accumulator) error {
|
||||
meas_name string
|
||||
)
|
||||
|
||||
p.AllColumns = nil
|
||||
|
||||
if p.Address == "" || p.Address == "localhost" {
|
||||
p.Address = localhost
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user