zeroshade commented on code in PR #14878:
URL: https://github.com/apache/arrow/pull/14878#discussion_r1046355408


##########
go/parquet/file/column_writer.go:
##########
@@ -534,6 +536,13 @@ func (w *columnWriter) Close() (err error) {
 
                w.defLevelSink.Reset(0)
                w.repLevelSink.Reset(0)
+               if w.bitsBuffer != nil {
+                       w.bitsBuffer.Release()

Review Comment:
   Good catch, i should shift this above that `return err` and use a `defer` to 
ensure it is always called.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to