Skip to content

Fix tr hack to not leak

Rather then leaking a boxed value to keep the upstream code working wrap the unescape string into a cow. This causes a bunch of allocations to happen if the upper/lower character classes are used but at least there are no allocations leaked.

Signed-off-by: Sjoerd Simons sjoerd@collabora.com

Merge request reports

Loading