This is an automated email from the ASF dual-hosted git repository.
masayuki pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new e3d20d2 mqueue: fix memory leak cause by lost inode_release
e3d20d2 is described below
commit e3d20d2c5495827b4e2b2181aac1931975ed9411
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);
}
}