delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1997/07/01/18:47:34

Message-Id: <199707012237.HAA09476@mail.st.rim.or.jp>
From: "Daisuke Aoyama" <jack AT st DOT rim DOT or DOT jp>
To: "Molnar Laszlo" <molnarl AT cdata DOT tvnet DOT hu>,
"Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
Cc: <djgpp-workers AT delorie DOT com>
Subject: RE: Memory leak in bash
Date: Wed, 2 Jul 1997 07:31:33 +0900
MIME-Version: 1.0

> 2) Why are you so sure it's a memory leak?  It can be just a
>result of known deficiencies in `malloc' and friends.  The fact that Bash
>requests more and more core from the DPMI host doesn't necessarily mean
>that it itself leaks memory (although it might).

Yes, it's not a leak but a bug.
If you can recompile bash sources, fix at line 227 of execute_cmd.c:
Before:
  else if (delay_remove_size >= delay_remove_counts)
After:
  else if (delay_remove_size <= delay_remove_counts)

Daisuke Aoyama
jack AT st DOT rim DOT or DOT jp

PGP Key ID: 50B4BDFD
PGP Key Fingerprint: 1E 2C 84 22 DA C4 0C BB  5A 75 F5 8A 82 F8 DF 58


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019