fs/rpmsgfs: fix double free

Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
This commit is contained in:
Jiuzhu Dong
2022-08-17 01:57:26 +08:00
committed by Xiang Xiao
parent 0b95148e5a
commit a7e7487053
-1
View File
@@ -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;
}