From 5ffb495746e55c440273ec7cc4741ab28e1f9017 Mon Sep 17 00:00:00 2001 From: Trustin Lee Date: Fri, 14 Dec 2012 18:38:28 +0900 Subject: [PATCH] Do not allow suspendIntermediaryDeallocations() after free() --- buffer/src/main/java/io/netty/buffer/PooledByteBuf.java | 1 + 1 file changed, 1 insertion(+) diff --git a/buffer/src/main/java/io/netty/buffer/PooledByteBuf.java b/buffer/src/main/java/io/netty/buffer/PooledByteBuf.java index fe7e15f34f..a05e32fb1c 100644 --- a/buffer/src/main/java/io/netty/buffer/PooledByteBuf.java +++ b/buffer/src/main/java/io/netty/buffer/PooledByteBuf.java @@ -119,6 +119,7 @@ abstract class PooledByteBuf extends AbstractByteBuf implements Unsafe { @Override public void suspendIntermediaryDeallocations() { + assert !isFreed(); if (suspendedDeallocations == null) { suspendedDeallocations = new ArrayDeque>(2); }