badalprasadsingh opened a new pull request, #1826:
URL: https://github.com/apache/iceberg-go/pull/1826

   ### Description
   
   Fixes #1819 
   
   There was a reference counting leak in schema projection - 
`ToRequestedSchema` for list / map columns whose element / key / value is 
struct, list or map. 
   
   `List()` / `Map()` overwrote the caller-owned original array with 
`castIfNeeded`'s retained copy without releasing the original first — 
`Struct()` already does this correctly via a two-defer pattern; ports the same 
pattern.
   
   ### Testing
   Added three regression tests that fail without the fix.


-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to