bug-ncurses
[Top][All Lists]
Advanced

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

Re: Possible memory leak


From: Thomas Dickey
Subject: Re: Possible memory leak
Date: Tue, 8 Jun 2004 20:52:26 -0400
User-agent: Mutt/1.5.4i

On Tue, Jun 08, 2004 at 04:05:15PM +0100, Steven Smith wrote:
> There seems to be a small memory leak in _nc_read_entry_source in
> version 5.4 of ncurses.
> 
> In particular, _nc_read_entry_source calls _nc_parse_entry, which in
> turn calls _nc_init_entry, but the memory allocated there doesn't
> appear to get freed anywhere.  enqueue() copies the structure, rather
> than making a new reference to it.
> 
> I attach a patch which appears to fix the problem, but it's rather
> ugly.

I agree with that.  Actually I see that I did something like that in mid-April.
It was in the 20040417 patch, which is incorporated in the 20040424 rollup
patch, e.g.,

ftp://invisible-island.net/ncurses/5.4/patch-5.4-20040424.sh

-- 
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net

Attachment: signature.asc
Description: Digital signature


reply via email to

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