forked from nuttx/nuttx-update
video/v4l2_cap: fix use after free
Signed-off-by: shizhenghui <shizhenghui@xiaomi.com>
This commit is contained in:
parent
47905c9132
commit
aa451d3740
1 changed files with 0 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue