[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: memory leak on arrays in functions
From: |
Chet Ramey |
Subject: |
Re: memory leak on arrays in functions |
Date: |
Sat, 8 May 2004 15:20:42 -0400 |
> have found a memory leak in bash 2.05b.0(1)
>
> -----
> #!/bin/bash
> run() { local -a A=(); local -a A=(); }
> while :; do run; done
Thanks for the report; I have found and fixed the leak.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )
Live...Laugh...Love
Chet Ramey, ITS, CWRU chet@po.cwru.edu http://tiswww.tis.cwru.edu/~chet/