From 30902c30e5cf4b5a38f04409f38e4c5959c06bbd Mon Sep 17 00:00:00 2001 From: Mikael Olsson Date: Tue, 2 Apr 2024 17:41:55 +0200 Subject: Fix semaphore clean up in RProc destructor The semaphore created in the RProc constructor is never cleaned up. To resolve this, the destructor will now delete the semaphore. Change-Id: Ib641a87129bacf3d7ba097c4e89aa77fa255e2f8 Signed-off-by: Mikael Olsson --- applications/message_handler_openamp/remoteproc.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/applications/message_handler_openamp/remoteproc.cpp b/applications/message_handler_openamp/remoteproc.cpp index 599452b..c2db93a 100644 --- a/applications/message_handler_openamp/remoteproc.cpp +++ b/applications/message_handler_openamp/remoteproc.cpp @@ -84,6 +84,7 @@ RProc::RProc(Mailbox::Mailbox &_mailbox, resource_table &table, size_t tableSize RProc::~RProc() { mailbox.deregisterCallback(mailboxCallback, static_cast(this)); vTaskDelete(notifyHandle); + vSemaphoreDelete(notifySemaphore); } remoteproc *RProc::getRProc() { -- cgit v1.2.1