Re: [PATCH] expand_word_internal: fix leak with W_NOSPLIT2

2024-06-03 Thread Chet Ramey
On 5/31/24 6:55 PM, Grisha Levit wrote: Free temporary list allocated when exapnding `$@' in bash -c 'IFS=:; : ${_+$@}' _ X Thanks for the report. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, C

[PATCH] expand_word_internal: fix leak with W_NOSPLIT2

2024-05-31 Thread Grisha Levit
Free temporary list allocated when exapnding `$@' in bash -c 'IFS=:; : ${_+$@}' _ X --- subst.c | 1 + 1 file changed, 1 insertion(+) diff --git a/subst.c b/subst.c index 3faa4068..c56d2434 100644 --- a/subst.c +++ b/subst.c @@ -12144,6 +12144,7 @@ finished_with_string: retu