fix(lwip): fix TCP pbuf memory leak

Disable TCP cache and retry function.
This commit is contained in:
Dong Heng
2018-12-04 11:35:59 +08:00
parent 98bdb57bea
commit e19f612606
4 changed files with 22 additions and 30 deletions

View File

@ -213,6 +213,8 @@
#define ESP_LWIP_MEM_DBG 1
#endif
size_t memp_malloc_get_size(size_t type);
/*
* @brief allocate an only DRAM memory block for LWIP pbuf
*
@ -220,7 +222,7 @@
*
* @return memory block pointer
*/
void *mem_malloc_ll(size_t s);
#define mem_malloc_ll(s) heap_caps_malloc(s, MALLOC_CAP_8BIT)
/*
* @brief allocate an only DRAM memory pool for LWIP pbuf
@ -229,7 +231,7 @@ void *mem_malloc_ll(size_t s);
*
* @return memory pool pointer
*/
void *memp_malloc_ll(size_t type);
#define memp_malloc_ll(type) heap_caps_malloc(memp_malloc_get_size(type), MALLOC_CAP_8BIT)
#endif
/**