bug-readline
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-readline] unfreed memory allocated within rl_initialize


From: Chet Ramey
Subject: Re: [Bug-readline] unfreed memory allocated within rl_initialize
Date: Fri, 28 Nov 2014 15:51:56 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.2.0

On 11/27/14 1:25 PM, Andreas Grapentin wrote:

> valgrind will probably claim that these blocks are still reachable at
> program exit, but that is beside the point. I am not claiming that
> readline leaks memory, I claim that the unfreed allocations at exit
> produce noise that makes it harder to find real memory leaks.

I think it's easy enough to tell the difference between memory that
valgrind reports as leaked and blocks it reports as still reachable.
I've used valgrind pretty extensively and I've never had that trouble.

> IMO, it would be nice to have a rl_finalize() function, that explicitly
> releases the resources held by the library.

If someone wants to take a shot at writing one, I'd be happy to look
at it.

Chet
-- 
``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/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]