[Top][All Lists]

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

Re: [Bug-readline] Re: PATCH: readline/histexpand.c, resource leak

From: Chet Ramey
Subject: Re: [Bug-readline] Re: PATCH: readline/histexpand.c, resource leak
Date: Tue, 21 Aug 2007 22:01:57 -0400
User-agent: Thunderbird (Macintosh/20070728)

Jim Blandy wrote:

>>> It seems to me that 'words' is a malloc'ed array of malloc'ed strings,
>>> so 'free (words)' still leaks storage.
>> I don't believe there's a case where wind == -1 and any malloced strings
>> exist in words[].  There's no leak unless that can happen.
> Not even if history_tokenize_internal's 'windp' argument falls in
> whitespace between words?

Yes, I think you're right.  Thanks.

``The lyf so short, the craft so long to lerne.'' - Chaucer
                       Live Strong.  No day but today.
Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/

reply via email to

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