test: Fix test apps linux port alloc size

This is a minor fix, as sys_sem_t is defined as
`typedef struct sys_sem * sys_sem_t;`
so the size is still the same (size of pointer)

Closes https://github.com/espressif/esp-lwip/issues/54
This commit is contained in:
David Cermak
2023-05-15 18:33:49 +02:00
committed by David Čermák
parent 269a58f185
commit d6b006094b
+1 -1
View File
@@ -663,7 +663,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);