Skip to content
Snippets Groups Projects

Fix tr hack to not leak

Closed Sjoerd Simons requested to merge wip/sjoerd/dont-leak-boxes into wip/aferraris/default-coreutils
  1. Jun 14, 2021
    • Sjoerd Simons's avatar
      Fix tr hack to not leak · 28eaa0e4
      Sjoerd Simons authored
      
      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: default avatarSjoerd Simons <sjoerd@collabora.com>
      28eaa0e4
  2. Jun 11, 2021
Loading