|
From: | Jalil Karimov <address@hidden> |
Subject: | Re: [Bug-readline] history cleanup question |
Date: | Mon, 30 Jan 2012 21:42:49 +0000 (GMT) |
User-agent: | Alpine 2.00 (DEB 1167 2008-08-23) |
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 <address@hidden> 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 address@hidden http://cnswww.cns.cwru.edu/~chet/
[Prev in Thread] | Current Thread | [Next in Thread] |