Memory leak inside lwip-Port in SDK for LPC54608x

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Memory leak inside lwip-Port in SDK for LPC54608x

1,104 次查看
andreschueer
Contributor II

We found a memory leak inside the port for lwIP. Inside the function "ethernetif_enet_init" in file "enet_ethernetif_lpc.c" there is an event group for FreeRTOS allocated. In our system, when there is no server to connect to available, we had to remove and add the network device again. Inside "netif_add" some layers down the "ethernetif_enet_init" is called, inside the "netif_remove" the allocated event group is not freed. It would be possible to introduce an "remove_callback" inside lwIP using the config "LWIP_NETIF_REMOVE_CALLBACK" to handle the memory integrity of the system to now blow the system memory. As we are using the SDK version 2.7.0, i took a quick look into the sources of the newest SDK but found no fixing change inside.

0 项奖励
回复
1 回复

1,096 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello,

It seems the same question with your private case, we have reply you on that.

 

BR

Alice

0 项奖励
回复