fix reference leaks in the translate fast path (closes #21175)

Patch by Josh Rosenberg.
1 file changed