diff options
author | Mikael Olsson <mikael.olsson@arm.com> | 2024-04-02 17:41:55 +0200 |
---|---|---|
committer | Mikael Olsson <mikael.olsson@arm.com> | 2024-04-02 17:41:55 +0200 |
commit | 30902c30e5cf4b5a38f04409f38e4c5959c06bbd (patch) | |
tree | e63d4de66fe37f08dba30e536794c39f465701c2 /applications/message_handler_openamp | |
parent | f870d11f676f05e8e968e1a7f7d92269a73ef99a (diff) | |
download | ethos-u-core-platform-30902c30e5cf4b5a38f04409f38e4c5959c06bbd.tar.gz |
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 <mikael.olsson@arm.com>
Diffstat (limited to 'applications/message_handler_openamp')
-rw-r--r-- | applications/message_handler_openamp/remoteproc.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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<void *>(this)); vTaskDelete(notifyHandle); + vSemaphoreDelete(notifySemaphore); } remoteproc *RProc::getRProc() { |