Skip to content

Commit

Permalink
test: Fix test apps linux port alloc size
Browse files Browse the repository at this point in the history
2.1.3-esp: d6b0060 test: Fix test apps linux port alloc size
  • Loading branch information
david-cermak committed Sep 11, 2024
1 parent 966a90a commit 46c037d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/ports/unix/port/sys_arch.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 46c037d

Please sign in to comment.