bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] string_list_dollar_atstar: fix leak


From: Chet Ramey
Subject: Re: [PATCH] string_list_dollar_atstar: fix leak
Date: Thu, 21 May 2026 13:13:47 -0400
User-agent: Mozilla Thunderbird

On 5/20/26 7:34 PM, Grisha Levit wrote:
With the latest devel commit [1], LeakSanitizer reports:

     $ bash -c 'IFS=,; $@' - :
     ...
     Direct leak of 16 byte(s) in 1 object(s) allocated from:
         #1 0x0000008cf24c in xmalloc xmalloc.c:104:10
         #2 0x0000005c63b4 in make_word_list make_cmd.c:156:3
         #3 0x0000006fb658 in string_list_dollar_atstar subst.c:3158:12
         #4 0x0000006fda80 in string_list_pos_params subst.c:3259:11

Thanks for the report. Cleaner to call dispose_words(l2) after the call to
word_list_split(l2).

Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]