gf2121 opened a new issue, #14890: URL: https://github.com/apache/arrow/issues/14890
### Describe the bug, including details regarding any error messages, version, and platform. `DictionaryEncoder#encode` & `DictionaryEncoder#decode` may leak memory when exception thrown. For example, decode indices [3] with dictionary [a, b]. ### Component(s) Java -- 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: issues-unsubscr...@arrow.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org