This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: A couple of uses of xmalloc and xfree in a couple of .y files
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Pedro Alves <pedro at codesourcery dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Fri, 24 Oct 2008 17:13:50 -0700
- Subject: Re: A couple of uses of xmalloc and xfree in a couple of .y files
- References: <200810242358.11089.pedro@codesourcery.com>
> Anything I'm missing preventing me from applying this as obvious?
Yes, I think we should be consistent.
The thing I don't get is why we don't translate free->xfree, though.
> 2008-10-24 Pedro Alves <pedro@codesourcery.com>
>
> * ada-exp.y (write_object_renaming): Use malloc instead of
> xmalloc.
> * p-exp.y (pop_current_type): Use free instead of xfree.
--
Joel