This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [gcjx] Patch: Copy over message string in exception classes


>>>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]