mirror of
https://github.com/espressif/esp-lwip.git
synced 2026-06-05 21:04:45 +00:00
test: Fix test apps linux port alloc size
2.1.3-esp: d6b00609 test: Fix test apps linux port alloc size
This commit is contained in:
@@ -690,7 +690,7 @@ sys_thread_sem_alloc(void)
|
||||
err_t err;
|
||||
int ret;
|
||||
|
||||
sem = (sys_sem_t*)malloc(sizeof(sys_sem_t*));
|
||||
sem = (sys_sem_t*)malloc(sizeof(sys_sem_t));
|
||||
LWIP_ASSERT("failed to allocate memory for TLS semaphore", sem != NULL);
|
||||
err = sys_sem_new(sem, 0);
|
||||
LWIP_ASSERT("failed to initialise TLS semaphore", err == ERR_OK);
|
||||
|
||||
Reference in New Issue
Block a user