video/v4l2_cap: fix use after free
Signed-off-by: shizhenghui <shizhenghui@xiaomi.com>
This commit is contained in:
parent
47905c9132
commit
aa451d3740
@ -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 New Issue
Block a user