This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch releases/10.2
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/releases/10.2 by this push:
     new 6075f47  mqueue: fix memory leak cause by lost inode_release
6075f47 is described below

commit 6075f479d53b4b623b43328251d430266cf030f1
Author: ligd <[email protected]>
AuthorDate: Mon Oct 25 15:52:19 2021 +0800

    mqueue: fix memory leak cause by lost inode_release
    
    Signed-off-by: ligd <[email protected]>
---
 fs/mqueue/mq_unlink.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/fs/mqueue/mq_unlink.c b/fs/mqueue/mq_unlink.c
index 679b47e..a0a5afe 100644
--- a/fs/mqueue/mq_unlink.c
+++ b/fs/mqueue/mq_unlink.c
@@ -64,6 +64,8 @@ static void mq_inode_release(FAR struct inode *inode)
           nxmq_free_msgq(msgq);
           inode->i_private = NULL;
         }
+
+      inode_release(inode);
     }
 }
 

Reply via email to