Skip to content

CompositeByteBuf.Component freeIfNecessary always frees #8641

@jameskleeh

Description

@jameskleeh

Expected behavior

The freeIfNecessary method should only release if the ref count > 0

Actual behavior

The freeIfNecessary method always releases

I would like to be able to free any given component of a composite byte buffer myself, with release being called on the whole buffer only releasing the components that were not previously released. The method name indicates to me that is what should happen

Netty version

4.1.30

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions