summaryrefslogtreecommitdiffstats
path: root/libjava/gnu/gcj/runtime/natStackTrace.cc
diff options
context:
space:
mode:
authorbryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4>2003-10-02 07:10:34 +0000
committerbryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4>2003-10-02 07:10:34 +0000
commit203dac8e58147d21ac10ceb10fc519e79e67a847 (patch)
tree1ceb18e3ff3e3946ca3f2212f72ef14293c258cd /libjava/gnu/gcj/runtime/natStackTrace.cc
parenta1c7eda2d5ee7ffde5e8ff23e0fec3cea03fea0b (diff)
downloadppe42-gcc-203dac8e58147d21ac10ceb10fc519e79e67a847.tar.gz
ppe42-gcc-203dac8e58147d21ac10ceb10fc519e79e67a847.zip
Fix PR libgcj/12475
* gnu/gcj/runtime/StackTrace.java (finalize): Declare. * gnu/gcj/runtime/natStackTrace.cc (finalize): New. Free "addrs". git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72012 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/gnu/gcj/runtime/natStackTrace.cc')
-rw-r--r--libjava/gnu/gcj/runtime/natStackTrace.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/libjava/gnu/gcj/runtime/natStackTrace.cc b/libjava/gnu/gcj/runtime/natStackTrace.cc
index af8889beb52..5e5aed87e5c 100644
--- a/libjava/gnu/gcj/runtime/natStackTrace.cc
+++ b/libjava/gnu/gcj/runtime/natStackTrace.cc
@@ -200,4 +200,9 @@ gnu::gcj::runtime::StackTrace::update(void)
}
}
-
+void
+gnu::gcj::runtime::StackTrace::finalize(void)
+{
+ if (addrs != NULL)
+ _Jv_Free (addrs);
+}
OpenPOWER on IntegriCloud