From: Chet Ramey <chet.ramey@case.edu>
To: Jim Blandy <jimb@codesourcery.com>
Cc: msnyder@sonic.net, bug-readline@gnu.org,
gdb-patches@sourceware.org, chet@case.edu
Subject: Re: [Bug-readline] Re: PATCH: readline/histexpand.c, resource leak
Date: Wed, 22 Aug 2007 02:02:00 -0000 [thread overview]
Message-ID: <46CB9915.4050307@case.edu> (raw)
In-Reply-To: <m3ejhy5ebb.fsf@codesourcery.com>
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.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
Live Strong. No day but today.
Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/
prev parent reply other threads:[~2007-08-22 2:02 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-01 2:14 msnyder
2007-08-10 21:32 ` msnyder
2007-08-15 0:01 ` Jim Blandy
2007-08-15 0:38 ` msnyder
2007-08-15 1:20 ` Daniel Jacobowitz
2007-08-15 1:40 ` msnyder
2007-08-15 21:43 ` Jim Blandy
2007-08-18 20:12 ` [Bug-readline] " Chet Ramey
2007-08-18 20:15 ` msnyder
2007-08-20 17:03 ` Jim Blandy
2007-08-22 2:02 ` Chet Ramey [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=46CB9915.4050307@case.edu \
--to=chet.ramey@case.edu \
--cc=bug-readline@gnu.org \
--cc=chet@case.edu \
--cc=gdb-patches@sourceware.org \
--cc=jimb@codesourcery.com \
--cc=msnyder@sonic.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox