Discussion:
memory leak on arrays in functions
Detlef Wusseng
2004-05-05 16:32:59 UTC
Permalink
have found a memory leak in bash 2.05b.0(1)

-----
#!/bin/bash
run() { local -a A=(); local -a A=(); }
while :; do run; done
-----

Regards
Detlef
--
--------------------------------------------------------------------------
Detlef Wusseng Alcatel SEL AG Berlin e-mail:
***@alcatel.de
Colditzstrasse 34-36 Tel: +49 30 7002 4955
12099 Berlin, Germany Fax: +49 30 7002 3345
Chet Ramey
2004-05-08 19:20:42 UTC
Permalink
Post by Detlef Wusseng
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 ***@po.cwru.edu http://tiswww.tis.cwru.edu/~chet/
Continue reading on narkive:
Loading...