Hi Chet,
I got a rid of leaks, by doing it myself,
after a bit of digging in code, rather than relying on
remove/clear_history by doing so:
HIST_ENTRY **list = history_list();
for (i = 0; list[i]; i++)
free list[i]'s line/timestamp/data
free list[i]
free list
valgrind reports no leaks afterwards.
Cheers,
Jalil
On Sun, 29 Jan 2012, Chet Ramey wrote:
On 1/28/12 12:26 PM, Jalil Karimov <[email protected]> wrote:
Hi,
I use readline in my application, and valgrind detected leaks even
if i use clear_history().
How about posting the valgrind output showing these supposed leaks?
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU [email protected] http://cnswww.cns.cwru.edu/~chet/
_______________________________________________
Bug-readline mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-readline