[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-readline] Memory leaks (identified with valgrind)
From: |
Chet Ramey |
Subject: |
Re: [Bug-readline] Memory leaks (identified with valgrind) |
Date: |
Sun, 6 Mar 2016 15:20:16 -0500 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 |
On 3/6/16 7:56 AM, Timothe Litt wrote:
> readline 6.3 under Fedora Linux.
> (same failures with 6.2)
>
> Any trivial program using readline leaks memory.
These are not leaks; this is simply allocated memory to which the
application still has a handle when the program exits.
> There is also a reference to uninitialized memory.
I can't reproduce this using readline-7.0-rc1 on Mac OS X or RHEL 6.
Please provide a reference (no pun intended) to the uninitialized read.
> I suggest that readline establish an "atexit" function during initialization
> that will cleanup... or (less desirable) provide a suitable function
> for the
> application to call "atexit".
I may add something like this in a future version.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU address@hidden http://cnswww.cns.cwru.edu/~chet/