diff --git a/libs/libc/audio/lib_buffer.c b/libs/libc/audio/lib_buffer.c index 55d22ca902..bc551dc114 100644 --- a/libs/libc/audio/lib_buffer.c +++ b/libs/libc/audio/lib_buffer.c @@ -162,6 +162,7 @@ void apb_free(FAR struct ap_buffer_s *apb) if (refcount <= 1) { audinfo("Freeing %p\n", apb); + nxsem_destroy(&apb->sem); lib_ufree(apb); } }