From: Michal Polkorab Date: Mon, 18 Nov 2013 11:09:28 +0000 (+0100) Subject: Releasing ByteBuf in DecoderTable X-Git-Tag: jenkins-openflowjava-bulk-release-prepare-only-1~63 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=27cc3a60698fd5b43b21cf6a3a2a7f99dac59aa1;p=openflowjava.git Releasing ByteBuf in DecoderTable Signed-off-by: Michal Polkorab --- diff --git a/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/core/OF13Decoder.java b/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/core/OF13Decoder.java index 5d13e2d3..b1aedc45 100644 --- a/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/core/OF13Decoder.java +++ b/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/core/OF13Decoder.java @@ -36,6 +36,8 @@ public class OF13Decoder extends MessageToMessageDecoder LOGGER.warn("Translated POJO is null"); return; } + msg.getMessageBuffer().discardReadBytes(); + msg.getMessageBuffer().release(); out.add(dataObject); } }