graphics/nxterm: destroy nxmutex/nxsem properly
Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
parent
a1abb818a9
commit
4413c5a563
@ -143,6 +143,10 @@ FAR struct nxterm_state_s *
|
||||
return (NXTERM)priv;
|
||||
|
||||
errout:
|
||||
nxmutex_destroy(&priv->lock);
|
||||
#ifdef CONFIG_NXTERM_NXKBDIN
|
||||
nxsem_destroy(&priv->waitsem);
|
||||
#endif
|
||||
kmm_free(priv);
|
||||
return NULL;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user