[Top][All Lists]

[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.


``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )
Chet Ramey, ITS, CWRU    address@hidden    http://tiswww.tis.cwru.edu/~chet/

reply via email to

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