[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Memory leaks in bash-4.4.0
From: |
Chet Ramey |
Subject: |
Re: Memory leaks in bash-4.4.0 |
Date: |
Mon, 30 Jan 2017 15:08:20 -0500 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 |
On 1/30/17 2:34 PM, Bruce Dubbs wrote:
>> xmalloc is a malloc wrapper, and `temp' is the return value from the
>> function.
>
> Yes, I know. The issue is that the caller, in this case set_default_locale
> or possibly main, never runs free on the allocated space. I tried to trace
> it in set_default_locale but there are a lot of paths and I didn't follow
> it all. I'll look some more and get back to you.
Look at the link I included in my first reply; it explains the
set_default_locale/setlocale issue.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/