Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Received packet buffer is not getting freed after processing incoming message in IOS app #4150

Closed
jrhees-cae opened this issue Dec 10, 2020 · 1 comment

Comments

@jrhees-cae
Copy link
Contributor

chip::System::PacketBuffer::Free(message);

The call to chip::System::PacketBuffer::Free(message); is being made after the PacketBuffer * message has already traversed the buffer list, and therefore message is already set to NULL when calling Free().

@kpschoedel
Copy link
Contributor

I believe this was fixed by #4011

void CHIPDeviceStatusDelegateBridge::OnMessage(chip::System::PacketBufferHandle message)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants