On 7/31/19 11:26 AM, fireshen wrote:
> Hey all, 
> 
> I suspect there is a memleak in bash.
> 
> I use the bash 4.4.23 (fedora Linux) with ASAN. Then I run some testcases
> and find a memleak.

It's not a memory leak. It's a false positive from asan or valgrind.

The `gs' object is freed by maybe_restore_getopt_state or a function it
calls (sh_getopt_dispose_istate via sh_getopt_restore_istate).

-- 
``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/

Reply via email to