Re: leak in command_word_completion_function

2023-07-10 Thread Chet Ramey
On 7/7/23 5:35 PM, Grisha Levit wrote: If there a glob is expanded to more than one result while attempting to complete the command word, the matches are discarded but not freed. Thanks for the report. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa,

leak in command_word_completion_function

2023-07-07 Thread Grisha Levit
If there a glob is expanded to more than one result while attempting to complete the command word, the matches are discarded but not freed. diff --git a/bashline.c b/bashline.c index 0e5373ab..07f38e62 100644 --- a/bashline.c +++ b/bashline.c @@ -2192,7 +2192,11 @@ globword: local_index = 0;