You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2022/08/16 17:57:31 UTC

[incubator-nuttx] branch master updated: fs/rpmsgfs: fix double free

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

xiaoxiang 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 a7e7487053 fs/rpmsgfs: fix double free
a7e7487053 is described below

commit a7e7487053e72c56e4b01e639ff37ddfed352c8c
Author: Jiuzhu Dong <do...@xiaomi.com>
AuthorDate: Tue Aug 16 21:16:14 2022 +0800

    fs/rpmsgfs: fix double free
    
    Signed-off-by: Jiuzhu Dong <do...@xiaomi.com>
---
 fs/rpmsgfs/rpmsgfs.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/fs/rpmsgfs/rpmsgfs.c b/fs/rpmsgfs/rpmsgfs.c
index 8ac89cd9f4..e95851097b 100644
--- a/fs/rpmsgfs/rpmsgfs.c
+++ b/fs/rpmsgfs/rpmsgfs.c
@@ -911,7 +911,6 @@ static int rpmsgfs_opendir(FAR struct inode *mountpt,
   if (rdir->dir == NULL)
     {
       ret = -ENOENT;
-      kmm_free(rdir);
       goto errout_with_semaphore;
     }