Commit 084079a7 authored by Florian Bezdeka's avatar Florian Bezdeka Committed by Jan Kiszka
Browse files

smokey: posix_mutex: Fix mutex/smokey_barrier leak

The mutex of the smokey_barrier used inside protect_handover() was
never destroyed. This had side effects when trying to extend the test
suite with an additional function that had a mutex located on the same
address than the never cleaned up smokey_barrier lock.
Signed-off-by: default avatarFlorian Bezdeka <>
Signed-off-by: Jan Kiszka's avatarJan Kiszka <>
parent ac9711db
......@@ -997,6 +997,8 @@ static int protect_handover(void)
if (!__T(ret, pthread_mutex_destroy(&mutex)))
return ret;
return 0;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment