Skip to content

Commit 18bf34b

Browse files
bhavikkumarbmoffatt
authored andcommitted
Close gzip reader as per documentation (#187)
1 parent 08d251d commit 18bf34b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

events/cloudwatch_logs.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ func (c CloudwatchLogsRawData) Parse() (d CloudwatchLogsData, err error) {
2626
}
2727

2828
zr, err := gzip.NewReader(bytes.NewBuffer(data))
29+
defer zr.Close()
2930
if err != nil {
3031
return
3132
}

0 commit comments

Comments
 (0)