From: Anthony Green Date: Sun, 3 Apr 2005 08:08:59 +0000 (+0000) Subject: re PR libgcj/20727 (double free or corruption) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2be74e4108a753c5b5117e4de6b6bbe2c8f01b36;p=gcc.git re PR libgcj/20727 (double free or corruption) 2005-04-02 Anthony Green PR libgcj/20727 * java/nio/DirectByteBufferImpl.java: Fix buffer ownership bug. From-SVN: r97479 --- diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 291f2546aba..4a88ac607bc 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,8 @@ +2005-04-02 Anthony Green + + PR libgcj/20727 + * java/nio/DirectByteBufferImpl.java: Fix buffer ownership bug. + 2005-04-02 Mark Wielaard * javax/naming/directory/BasicAttributes.java (equals): Compare to any diff --git a/libjava/java/nio/DirectByteBufferImpl.java b/libjava/java/nio/DirectByteBufferImpl.java index 83279382a22..a0599c722a9 100644 --- a/libjava/java/nio/DirectByteBufferImpl.java +++ b/libjava/java/nio/DirectByteBufferImpl.java @@ -117,7 +117,7 @@ abstract class DirectByteBufferImpl extends ByteBuffer DirectByteBufferImpl(RawData address, int capacity) { super(capacity, capacity, 0, -1); - this.owner = this; + this.owner = null; this.address = address; }