1
0
Fork 0
forked from nuttx/nuttx-update

video/v4l2_cap: fix use after free

Signed-off-by: shizhenghui <shizhenghui@xiaomi.com>
This commit is contained in:
shizhenghui 2024-05-31 10:51:47 +08:00 committed by Alan Carvalho de Assis
parent 47905c9132
commit aa451d3740

View file

@ -3716,8 +3716,6 @@ static int capture_unlink(FAR struct inode *inode)
nxmutex_unlock(&cmng->lock_open_num);
}
nxmutex_destroy(&cmng->lock_open_num);
return OK;
}
#endif