From: teawater <teawater@gmail.com>
To: gdb ml <gdb@sourceware.org>
Subject: Re: All function that call function find_function_in_inferior have memory leak?
Date: Tue, 03 Mar 2009 09:30:00 -0000 [thread overview]
Message-ID: <daef60380903030130yc5d7c55pa004845413558ebc@mail.gmail.com> (raw)
In-Reply-To: <daef60380903030115q57c4ae1enda3f3f0299fdea60@mail.gmail.com>
I miss "free_all_values ();" in "execute_command".
So sorry to disturb you.
Hui
On Tue, Mar 3, 2009 at 17:15, teawater <teawater@gmail.com> wrote:
> Hi guys,
>
> I found that function find_function_in_inferior will alloc a "struct
> value *val" and return it.
> But I can't find any function call value_free to free it.
>
> For example:
> Function scm_inferior_print:
> func = find_function_in_inferior ("gdb_print", &objf);
>
> Function checkpoint_command:
> fork_fn = find_function_in_inferior ("fork", &fork_objf);
>
> Did I miss something or this is a memory leak?
>
> Thanks,
> Hui
>
prev parent reply other threads:[~2009-03-03 9:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-03 9:15 teawater
2009-03-03 9:30 ` teawater [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=daef60380903030130yc5d7c55pa004845413558ebc@mail.gmail.com \
--to=teawater@gmail.com \
--cc=gdb@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