mirror of
https://github.com/apache/nuttx.git
synced 2026-09-22 22:55:02 +08:00
fs/rpmsgfs: fix double free
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user