Commit 9eafc693 by Brian Gann Committed by GitHub

MSSQL: Fix memory leak when debug enabled (#19049)

* fix for #19049
parent 81c326b3
......@@ -68,8 +68,9 @@ func (t *mssqlRowTransformer) Transform(columnTypes []*sql.ColumnType, rows *cor
values := make([]interface{}, len(columnTypes))
valuePtrs := make([]interface{}, len(columnTypes))
for i, stype := range columnTypes {
t.log.Debug("type", "type", stype)
for i := range columnTypes {
// debug output on large tables causes high memory utilization/leak
// t.log.Debug("type", "type", stype)
valuePtrs[i] = &values[i]
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment