Skip to content
Commit 82d564a3 authored by Chris Friedt's avatar Chris Friedt Committed by Benjamin Cabé
Browse files

posix: timers: correct pointer passed to k_mem_slab_free()



If it is not possible to create a timer in timer_create(),
then the timer_obj associated with the timer must be freed.

However, the address of the pointer was mistakenly being
passed to k_mem_slab_free() rather than simply the
the pointer.

This caused a crash in tests which can easily be avoided
by passing the pointer rather than the address of the
pointer.

Signed-off-by: default avatarChris Friedt <cfriedt@tenstorrent.com>
parent 541b6474
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment