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