This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [PATCH RFA] mi-main.c: Fix memory leaks and compilation problems
- To: Andrew Cagney <ac131313 at cygnus dot com>
- Subject: Re: [PATCH RFA] mi-main.c: Fix memory leaks and compilation problems
- From: Kevin Buettner <kevinb at cygnus dot com>
- Date: Mon, 9 Jul 2001 09:56:39 -0700
- Cc: gdb-patches at sources dot redhat dot com
- References: <1010709064143.ZM9950@ocotillo.lan> <3B49BE85.8070407@cygnus.com>
On Jul 9, 10:24am, Andrew Cagney wrote:
> > Okay to commit?
> >
> > * mi-main.c (mi_cmd_data_write_register_values)
> > (mi_cmd_data_write_memory): Change type of ``buffer'' to
> > ``void *''. Don't cast return value from xmalloc(). Add
> > a cleanup to free the xmalloc'd buffer.
>
>
> Yes, definitly. Thanks!
Committed.