Fixed msc9220_emac link_out memory management.

pull/11420/head
Tymoteusz Bloch 2019-09-04 13:59:36 +02:00
parent 1c32e3ca5a
commit 2626d90266
1 changed files with 1 additions and 0 deletions

View File

@ -168,6 +168,7 @@ bool SMSC9220_EMAC::link_out(emac_mem_buf_t *buf)
true, true,
(const char*)_memory_manager->get_ptr(buf), (const char*)_memory_manager->get_ptr(buf),
_memory_manager->get_len(buf)); _memory_manager->get_len(buf));
_memory_manager->free(buf);
if (error != SMSC9220_ERROR_NONE) { if (error != SMSC9220_ERROR_NONE) {
_TXLockMutex.unlock(); _TXLockMutex.unlock();
return false; return false;