drivers/input:fix circbuf leak
Signed-off-by: liuhongchao <liuhongchao@xiaomi.com>
This commit is contained in:
parent
5830da2fc8
commit
f9dbeaef86
|
@ -139,6 +139,7 @@ static int keyboard_open(FAR struct file *filep)
|
|||
ret = upper->lower->open(upper->lower);
|
||||
if (ret < 0)
|
||||
{
|
||||
circbuf_uninit(&opriv->circ);
|
||||
kmm_free(opriv);
|
||||
nxmutex_unlock(&upper->lock);
|
||||
return ret;
|
||||
|
|
Loading…
Reference in New Issue