From d025162542d43444210047747f0d982741a0bc1d Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Mon, 27 Aug 2018 07:49:23 -0600 Subject: [PATCH] libs/libc/audio/lib_buffer.c: Call nxsem_destroy in apb_free --- libs/libc/audio/lib_buffer.c | 1 + 1 file changed, 1 insertion(+) 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); } }