fs/rpmsgfs: fix double free

Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
This commit is contained in:
Jiuzhu Dong 2022-08-16 21:16:14 +08:00 committed by Xiang Xiao
parent 0b95148e5a
commit a7e7487053

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;
}