commit | 82d564a3547017e0f0aadcdd4a16a03c784cf635 | [log] [tgz] |
---|---|---|
author | Chris Friedt <cfriedt@tenstorrent.com> | Sat Apr 05 09:18:25 2025 -0400 |
committer | Benjamin Cabé <kartben@gmail.com> | Wed Apr 16 08:04:36 2025 +0200 |
tree | 40c90931e7fbe9bddc25268acb8d31695d952c3b | |
parent | 541b64747cdffe8cd7e4f7df062cbf1c83787ddd [diff] |
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: Chris Friedt <cfriedt@tenstorrent.com>