Skip to content

Commit

Permalink
Close gzip reader as per documentation (#187)
Browse files Browse the repository at this point in the history
  • Loading branch information
bhavikkumar authored and bmoffatt committed May 9, 2019
1 parent 08d251d commit 18bf34b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions events/cloudwatch_logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ func (c CloudwatchLogsRawData) Parse() (d CloudwatchLogsData, err error) {
}

zr, err := gzip.NewReader(bytes.NewBuffer(data))
defer zr.Close()
if err != nil {
return
}
Expand Down

0 comments on commit 18bf34b

Please sign in to comment.