bug-readline
[Top][All Lists]
Advanced

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

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


From: msnyder
Subject: Re: [Bug-readline] Re: PATCH: readline/histexpand.c, resource leak
Date: Sat, 18 Aug 2007 13:15:19 -0700 (PDT)
User-agent: SquirrelMail/1.4.9a

> 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.

Well, that isn't locally obvious -- it depends on knowing the
behavior of other code.

You may be right -- but the free won't do any harm, and in case
you're wrong (now or in the future), the free will catch it.







reply via email to

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