defer closing the ReadCloser in ObjectStoreGRPCServer.GetObject
Signed-off-by: DheerajSShetty <dheerajs@vmware.com> Fixes #1093pull/1236/head
parent
e4771f582b
commit
032aaac508
|
@ -0,0 +1 @@
|
|||
Need to defer closing the the ReadCloser in ObjectStoreGRPCServer.GetObject
|
|
@ -284,6 +284,7 @@ func (s *ObjectStoreGRPCServer) GetObject(req *proto.GetObjectRequest, stream pr
|
|||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer rdr.Close()
|
||||
|
||||
chunk := make([]byte, byteChunkSize)
|
||||
for {
|
||||
|
|
Loading…
Reference in New Issue