This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: [gcjx] Patch: Copy over message string in exception classes
- From: Tom Tromey <tromey at redhat dot com>
- To: Ranjit Mathew <rmathew at gmail dot com>
- Cc: java-patches at gcc dot gnu dot org
- Date: 10 Sep 2005 17:41:44 -0600
- Subject: Re: [gcjx] Patch: Copy over message string in exception classes
- References: <dfur58$vtn$1@sea.gmane.org>
- Reply-to: tromey at redhat dot com
>>>>> "Ranjit" == Ranjit Mathew <rmathew@gmail.com> writes:
Ranjit> Index: ChangeLog
Ranjit> from Ranjit Mathew <rmathew@gcc.gnu.org>
Ranjit> * util.hh (copy_str): New function similar to strdup().
Ranjit> * format/format.hh (~format_repr): delete memory pointed to by PLAN.
Ranjit> * format/format.cc (format_repr::format_repr): Use a duplicate string
Ranjit> for PLAN, not the original string.
Please check in, thanks.
FWIW I periodically run gcjx with valgrind to catch things like this.
Tom