Re: Memory leak in function with local array

2021-05-03 Thread Chet Ramey
On 5/2/21 8:19 AM, thomas.gren...@aalto.fi wrote: Bash Version: 5.1 Patch Level: 4 Release Status: release Description: There seems to be a memory leak in bash when a local array is declared within a function. I also tested this on "GNU bash, version 5.0.17(1)-release (x86_64-redhat

Memory leak in function with local array

2021-05-02 Thread Thomas.Grenman
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs