From: Michael Snyder <msnyder@vmware.com>
To: Joel Brobecker <brobecker@adacore.com>
Cc: "gdb-patches@sourceware.org" <gdb-patches@sourceware.org>
Subject: Re: [RFA] target.c/read_whatever_is_readable: fix memory leak
Date: Tue, 08 Mar 2011 19:39:00 -0000 [thread overview]
Message-ID: <4D767C83.9040908@vmware.com> (raw)
In-Reply-To: <20110308045814.GK30306@adacore.com>
Joel Brobecker wrote:
>> 2011-02-27 Michael Snyder <msnyder@vmware.com>
>>
>> * target.c (read_whatever_is_readable): Fix memory leak.
>
> Looks correct to me.
>
>> {
>> - gdb_byte *buf = xmalloc (end-begin);
>> + gdb_byte *buf = xmalloc (end - begin);
>
> I applied this change myself (as well as a couple of other reformatting
> changes), mostly because I have a fairly strong preference over
> separating this type of change (reformatting - no code change) from
> code changes. It simplifies our task if/when a revert is needed.
>
> With git, there is a neat way to commit those changes separately
> from your other changes: It's "git add -p" - it then asks you
> hunk by hunk whether to put the change in the index or not (and
> you and further divide hunks if necessary). Really useful in this
> sort of situation.
>
Thanks - committed.
prev parent reply other threads:[~2011-03-08 18:59 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-27 23:50 Michael Snyder
2011-03-07 20:16 ` Michael Snyder
2011-03-08 5:13 ` Joel Brobecker
2011-03-08 19:39 ` Michael Snyder [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=4D767C83.9040908@vmware.com \
--to=msnyder@vmware.com \
--cc=brobecker@adacore.com \
--cc=gdb-patches@sourceware.org \
/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