]> git.ipfire.org Git - thirdparty/coreutils.git/commit
ptx: pacify -fsanitizer=leak
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 31 Jan 2022 16:42:07 +0000 (08:42 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 31 Jan 2022 20:07:39 +0000 (12:07 -0800)
commit75b50689f1fb551ffdde151003bd010eaea15e6c
treef37fead77ee956aab96cb4f0ac071a7f30d3aa4a
parentb29f782a3f2a03bc0f6f8777b46e530cc2b83b80
ptx: pacify -fsanitizer=leak

* src/ptx.c (unescape_string): Rename from copy_unescaped_string,
and unescape the string in place.  Callers changed.  This way,
we needn’t allocate storage and thus needn’t worry about
-fsanitizer=leak.
src/ptx.c