Package: bash
Version: 3.0-15

Bash has a nasty memoryleak that manifested itself when i upgraded from 2.05b-24 to 3.0-15.
I have a small demonstration script that leaks.

#!/bin/sh
while /bin/true
do
for dir in *
 do
  test -d $dir || continue
  cd $dir
  set -- *.req
  cd ../
 done
done

The malloc() is called when set -- *.req is invoked, only it is not free()-ed. For some reason the directory traversal seems necessary.

With kind regards,

SunDevil


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to