Skip to content

Commit e5e1f6d

Browse files
committed
fix: Bring back defer to release builder
1 parent 64589fe commit e5e1f6d

File tree

1 file changed

+1
-0
lines changed
  • plugins/destination/mysql/client

1 file changed

+1
-0
lines changed

plugins/destination/mysql/client/read.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ func (*Client) createResultsArray(table *arrow.Schema) []any {
7474

7575
func reverseTransform(table *arrow.Schema, values []any) (arrow.Record, error) {
7676
recordBuilder := array.NewRecordBuilder(memory.DefaultAllocator, table)
77+
defer recordBuilder.Release()
7778
for i, val := range values {
7879
switch table.Field(i).Type.(type) {
7980
case *arrow.BooleanType:

0 commit comments

Comments
 (0)