From 5335f046ff6a0e42cf7c5b1860fd6f308e1aba46 Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Thu, 8 Mar 2018 18:03:16 +0100 Subject: [PATCH] dealloc mutex and cond in msg_queue --- lib/include/srslte/common/msg_queue.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/include/srslte/common/msg_queue.h b/lib/include/srslte/common/msg_queue.h index bca4c5388..e8b8c742a 100644 --- a/lib/include/srslte/common/msg_queue.h +++ b/lib/include/srslte/common/msg_queue.h @@ -56,6 +56,9 @@ public: ~msg_queue() { + pthread_mutex_destroy(&mutex); + pthread_cond_destroy(¬_empty); + pthread_cond_destroy(¬_full); delete [] buf; }