Skip to content

Commit 3297bf4

Browse files
authored
Merge pull request #11420 from tymoteuszblochmobica/cm3ds
Fixed smsc9220_emac link_out memory management.
2 parents c897e04 + 2626d90 commit 3297bf4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

features/netsocket/emac-drivers/TARGET_ARM_SSG/COMPONENT_SMSC9220/smsc9220_emac.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ bool SMSC9220_EMAC::link_out(emac_mem_buf_t *buf)
168168
true,
169169
(const char*)_memory_manager->get_ptr(buf),
170170
_memory_manager->get_len(buf));
171+
_memory_manager->free(buf);
171172
if (error != SMSC9220_ERROR_NONE) {
172173
_TXLockMutex.unlock();
173174
return false;

0 commit comments

Comments
 (0)