On 7/5/23 3:25 PM, Grisha Levit wrote:
On Wed, May 31, 2023 at 6:23 PM Grisha Levit <grishale...@gmail.com> wrote:
If rl_filename_rewrite_hook returns a new string for a filename (which
I guess only happens on macOS with bash), it is in most cases not
free-d.
I think this one got dropped.
I think this one might have gotten lost among the other reports, and
looking at it again it occurs to me this might be better solved by
just not allocating a new string in the filename rewrite hook since
rl_filename_completion_function will copy the string anyway.
The rewrite hook is documented to return either its first argument or
a newly-allocated string, so it's up to the rewrite hook to do the
allocation.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU c...@case.edu http://tiswww.cwru.edu/~chet/