[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bash 5.2.0: Memory leak with $(<file)
From: |
Chet Ramey |
Subject: |
Re: Bash 5.2.0: Memory leak with $(<file) |
Date: |
Mon, 8 Jan 2024 10:23:18 -0500 |
User-agent: |
Mozilla Thunderbird |
On 1/7/24 1:17 AM, pourko--- via Bug reports for the GNU Bourne Again SHell
wrote:
[2]: >
https://git.savannah.gnu.org/cgit/bash.git/diff/builtins/evalstring.c?h=devel&id=81f7b44564cd1510788035cea7c59631865a7db2&dt=1#n766
Could we maybe get a patch for the 5.2 series?
*** ../bash-5.2-patched/builtins/evalstring.c Tue Dec 13 12:53:21 2022
--- builtins/evalstring.c Tue Nov 28 17:25:39 2023
***************
*** 763,766 ****
--- 773,779 ----
if (fnp)
*fnp = fn;
+ else
+ free (fn);
+
return fd;
}
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/
OpenPGP_signature.asc
Description: OpenPGP digital signature
Re: Bash 5.2.0: Memory leak with $(<file), Chet Ramey, 2024/01/08
Message not available