From 46c037d52ca974d820cbb83efd55238990675567 Mon Sep 17 00:00:00 2001 From: David Cermak Date: Mon, 15 May 2023 18:33:49 +0200 Subject: [PATCH] test: Fix test apps linux port alloc size 2.1.3-esp: d6b00609 test: Fix test apps linux port alloc size --- contrib/ports/unix/port/sys_arch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/ports/unix/port/sys_arch.c b/contrib/ports/unix/port/sys_arch.c index fa7ea72fb..a5fd18b33 100644 --- a/contrib/ports/unix/port/sys_arch.c +++ b/contrib/ports/unix/port/sys_arch.c @@ -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);