mirror of
https://github.com/espressif/openthread.git
synced 2026-08-10 20:57:47 +00:00
Fix Message::FreeBuffers() under "platform msg management" config (#1430)
This commit is contained in:
committed by
Jonathan Hui
parent
1263c82463
commit
0357848f42
@@ -134,7 +134,7 @@ ThreadError MessagePool::FreeBuffers(Buffer *aBuffer)
|
||||
{
|
||||
tmpBuffer = aBuffer->GetNextBuffer();
|
||||
#if OPENTHREAD_CONFIG_PLATFORM_MESSAGE_MANAGEMENT
|
||||
otPlatMessagePoolFree(static_cast<struct BufferHeader *>(aBuffer));
|
||||
otPlatMessagePoolFree(aBuffer);
|
||||
#else // OPENTHREAD_CONFIG_PLATFORM_MESSAGE_MANAGEMENT
|
||||
aBuffer->SetNextBuffer(mFreeBuffers);
|
||||
mFreeBuffers = aBuffer;
|
||||
|
||||
Reference in New Issue
Block a user