fs/rpmsgfs: fix double free
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
This commit is contained in:
parent
0b95148e5a
commit
a7e7487053
@ -911,7 +911,6 @@ static int rpmsgfs_opendir(FAR struct inode *mountpt,
|
|||||||
if (rdir->dir == NULL)
|
if (rdir->dir == NULL)
|
||||||
{
|
{
|
||||||
ret = -ENOENT;
|
ret = -ENOENT;
|
||||||
kmm_free(rdir);
|
|
||||||
goto errout_with_semaphore;
|
goto errout_with_semaphore;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user