Don't leak upon failed realloc.
authorJim Meyering <meyering@redhat.com>
Mon, 10 Mar 2008 22:08:34 +0000 (22:08 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Mon, 10 Mar 2008 22:08:34 +0000 (22:08 +0000)
commitea1b8c8764d150970c1203585d4cf8bf684afbf6
tree760625d856048373d82ecd71dfe46ad4f26ff853
parentdd6d52363003ef0a2e7c2293bb6d0c5f1f829b6a
Don't leak upon failed realloc.

libjava
2008-03-10  Jim Meyering  <meyering@redhat.com>
        Don't leak upon failed realloc.
        * gnu/classpath/natSystemProperties.cc
        (SystemProperties::insertSystemProperties):
libjava/classpath
2008-03-10  Jim Meyering  <meyering@redhat.com>
        Don't leak upon failed realloc.
        * native/jni/classpath/jcl.c (JCL_realloc): Upon failed realloc,
        free the original buffer before throwing the exception.

From-SVN: r133094
libjava/ChangeLog
libjava/classpath/ChangeLog
libjava/classpath/native/jni/classpath/jcl.c
libjava/gnu/classpath/natSystemProperties.cc